Tag Info

New answers tagged

0

What I did was the following: Look in index.php for the name of the function that creates the older/newer posts links. Search (using the multifile search function of my text editor) for where that function is defined. Open that file and copy the HTML code from there to index.php, replacing the function call. Save index.php (but not close the file). Style ...


1

next_post function is deprecated. You should try this instead: next_post_link and previous_post_link The basic way to use it is like so: This will link to the next post or prev post. <?php next_post_link( '%link', '%title' ); previous_post_link( '%link', '%title' ); ?> If you would like to link to the next post in the same category, add ...


0

This is what I'm looking for and it works well for the direct category of the post, but I can't figure how to add a current-parent-category to the parent level. Any idea?


0

This is going to be a bit crappy to achieve without any potholes. The problems that you are going to face are If you are going to paginate one set of posts, the other two will also paginate regardless You are going to hit some kind of failure once you run out of posts on any of the three loops while paging through one of the other loops which have more ...


0

What i have understand that you want to change the class of all li element to be what you want try this class myWalker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $output .= "\n".'<li class="your_custom_class" id ="your_custom_id>'."\n"; } function end_lvl(&$output, $depth = 0, ...


0

I had a similar problem and here is the best solution I could come up with. The reason (I think) that private or non-published items show up in menus is that the menu items are themselves posts and have their own post_status. That means that in a situation where a page is marked private, the menu item for that page can still be set to publish, and is ...



Top 50 recent answers are included