load next and previous posts by Ajax and URL update
load next and previous posts by Ajax and URL update
load next and previous posts by Ajax and URL update
Change where navigation bar links?
Use walker for specific menu, or avoid use of walker
Hide Login information in Account settings in Buddy Boss
you can use wp-pagenavi and set the “number of pages to show” to 3 so you will get [first] [6] [7] [8] [last] now if you just need the names of the post then you could do something like this: global $wp_query; //curent post $thePostID = $wp_query->post->ID; $my_query = new WP_Query(array(‘cat’ => get_query_var(‘cat’))); $count = … Read more
If i understand the question correct then you need this: add_filter(‘walker_nav_menu_start_el’,’auto_category_subMenu’,10,4); function auto_category_subMenu($item_output, $item, $depth, $args){ //first you check if the current item is a category if (!$item->object == ‘category’){ return $item_output; }else{ //if it is a category then check that it is the right one. if ($item->title == ‘Water Balloon’){ //if we got this … Read more
Defaults First, you don’t have to put ‘« %link’ in, as this is already the default value. WPDB Query Your “Problem” is, that the underlying funtion adjacent_post_link() uses get_adjacent_post() if it’s not querying an attachment. This then builds the following JOIN part for the query: INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER … Read more
This is one of the code i have used in the past. The below code goes in your functions.php class MP_Footer_Menu extends Walker_Nav_Menu { function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { STATIC $counter = 0; if ($counter++) $output .= ‘<li class=”divider”>/</li>’; parent::start_el($output, $item, $depth, $args, $id); } } This … Read more
As per vancoder‘s comment under the OP’s question: Make each product a post (a Custom Post Type if you like), and associate two new taxonomies with it: brand and type. This give you lots of flexibility in how you organize and present your posts. No tags are necessary. The codex is your friend: Custom Taxonomies.
Solved! The problem was in the plugins settings … To fix this problem go to: Events(Left Admin Sidebar) -> Settings -> Pages -> Event Categories and set “Override with Formats?” to NO Thats it … I hope this information to be useful for others, and save them a lot of time, which they coud use … Read more