Pagination does not work on Custom Post Type archive while trying to get load more function working

The problem with pagination was fixed by removing the wp_query loop and using the normal loop. <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php endwhile; endif; ?> The problem with the “load more” plugin was fixed by using the right classname to load the items. And change this in the php of the … Read more

Multiple Tags Issue in Permalinks

There is a column in the term_relationships table for term_order which seems to imply that one could set the order of terms. That said, it looks like it doesn’t actually work — the core doesn’t use it in any way. A bit of poking around in wp_set_object_terms, the function that get’s used to assign terms … Read more

Make get_permalink() work outside the Loop using filters

I made an example plugin based on Milo’s answer to show how you can use ajax to get a post and display it with colorbox. example.php: <?php /* Plugin Name: example */ function example_ajax_get_post() { $url = $_POST[‘url’]; $post = get_post(url_to_postid($url)); ?> <h2><?php print $post->post_title; ?></h2> <div><?php print $post->post_content; ?></div> <?php die(); }// end function … Read more

Page header menu links change

Note that you’re using a Custom Nav Menu, meaning that the contents of the menu can be customized. The easiest solution is simply to: remove the current “Our Doctors” page from the menu add your desired page to the menu edit the menu item to change the displayed title to “Our Doctors” save the menu