Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Guide Loop
- */
- remove_action( 'genesis_post_content', 'genesis_do_post_content' );
- add_action( 'genesis_post_content', 'child_do_content' ); // Adds your custom page code/content
- function child_do_content()
- {
- $blogs_id = get_blog_list( 0, 'all' );
- $allposts = array();
- foreach ($blogs_id as $blog) {
- // switch to blog to get posts
- switch_to_blog( $blog['blog_id'] );
- $posts = get_posts('meta_key=_wp_page_template&meta_value=Profile_Template.php');
- foreach( $posts as $post ) :
- setup_postdata($post); ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php echo get_post_meta(get_the_ID(), 'custom_field_1', true) ?>
- <?php echo(types_render_field("first", array("raw"=>"false"))); ?>
- <?php $rating = myrp_api6_get_rating() * 5; echo myrp_api_star_image($rating); ?>
- <?php endforeach;
- }
- }
- genesis();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement