Combining external feed into post loop
What I ended up doing was CURLing down the external feed and then merging arrays together.
What I ended up doing was CURLing down the external feed and then merging arrays together.
i think that you need to use wp_reset_query(); before woo_loop_after();
Your navigation function seems to take data from main query (global $wp_query) variable. However what you have on custom page is a completely separate query (new WP_Query()), which doesn’t modify main one (as it shouldn’t). The best way would probably be to modify your pagination function to optionally accept custom query object as argument to … Read more
function dot1_get_nav(){ if ( get_next_posts_link() || get_previous_posts_link() ) { ?> <nav class=”dot1-navigation clearfix”> <?php if ( get_next_posts_link() ) { ?> <div class=”alignleft”> <?php next_posts_link( __( ‘← Older Entries’, ‘dot1’ ) ); ?> </div> <?php } ?> <?php if ( get_previous_posts_link() ) { ?> <div class=”alignright”> <?php previous_posts_link( __( ‘Newer Entries →’, ‘dot1’ ) ); ?> … Read more
Display Post by menu order
The Problem By default, in any given context, WordPress uses the main query to determine pagination. The main query object is stored in the $wp_query global, which is also used to output the main query loop: if ( have_posts() ) : while ( have_posts() ) : the_post(); When you use a custom query, you create … Read more
If I understand well, you have a page template, and you want to use this page template as a category archive. The term to show is in a page meta field with key ‘cat_page’. If I’m right, in this page template use: the post(); // being a singular page the ‘while’ stuff is useless the_content(); … Read more
Ok, I got it work. Since the checkbox for the custom fields stores entires as a comma seperated value, I needed to explode the delimiter and then perfom another loop to parse the information. Then I created two separate arguments to split the data and call it back within the echo. Here’s my final output … Read more
I think the problem is not with shortcode but with your code – you can’t nest blocks 😉 This should work just fine, I guess: <?php echo do_shortcode(“[standout-css3-button href=””. get_post_meta($post->ID, “church-website-url’, true) .”‘]Church website[/standout-css3-button]”); ?>
Add wp_reset_postdata(); after each loop, if you use your custom query, you should use wp_reset_query();