Getting content from a single *page* of a post

This should do the trick: /** * For posts paginated using <!–nextpage–>, return a particular “page” of content. * This function uses code from WP’s setup_postdata() function. * @param string $content the content to search for paginated page content. * @param int $page_number the index of the page to return the content for. */ function … Read more

Make view count for pop up post

Apparently the plugin does the logging inside the wp_head hook: add_action(‘wp_head’, ‘process_postviews’); so make sure you call wp_head() in your pop-up box, or if you can’t do that (pop-up is not a html document), then just call the function directly, like: if(function_exists(‘process_postviews’)) process_postviews(); // the_content(); ?

Display posts in three columns by category

I am not familiar with the theme you’re using, but that ought to be irrelevant anyhow. Pages can be assigned template files, the php of which defines what and how content is displayed on said page. You do not need to modify the page templates supplied with the theme, instead create your own in addition … Read more

Get image from post’s gallery

You can get the attached media to a post using get_children. IE: get the first attached image for post ID == 14 $args = array( ‘post_mime_type’ => ‘image’, ‘numberposts’ => 1, ‘post_parent’ => 14, ‘post_type’ => ‘attachment’ ); $first_attached_image = get_children( $args );

Posts vs. Pages

Looks like your “local” “pretty close” and “further away” is only title text on the page and is not actually linking somewhere. You can simply make each venue into a post and under “local” “pretty close” and “further away”, add a link to the post after their description/introductions. This way they retain their category titles … Read more