I worked in wordpress created on pagination but always first page the same as current page so solution is : $pag_args1 = array( 'base' => @add_query_arg('paged1','%#%'), 'format' => '?paged1=%#%', 'current' => $paged1, 'total' => $query1->max_num_pages ); this case we attention...
Tag: wordpress
wordpress Admin 添加 custom field colonne 再POST list 上
Custom columns for custom post types Published by Justin Tadlock on June 27, 2011 | 90 Responses I got a bit inspired by Joost de Valk’s post on custom post type snippets. Joost provided some code snippets for adding custom...
add cron table excute comande line for planing task
5 * * * * /usr/bin/lynx -source http://example.com/cron.php 45 * * * * /usr/bin/wget -O - -q -t 1 http://www.example.com/cron.php 45 * * * * curl -s http://example.com/cron.php
solution for qtranslate not support custom post
Add this function to function.php and wordpress will support qtranslate custom url with lang parameter function qtrans_menuitem( $menu_item ) { if ($menu_item->type == 'custom' && stripos($menu_item->url, get_site_url()) !== false){ $menu_item->url = qtrans_convertURL($menu_item->url); } return $menu_item; } add_filter('wp_setup_nav_menu_item', 'qtrans_menuitem', 0); //add...