Post Navigation

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

Showing Custom Content in a Nav Dropdown

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

Previous/next link to post in category, NOT tag?

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

Using dividers in menu navigation – where to add code?

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

Outputting Page Content in Two Places

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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)