Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
tootiefrutie
tagDiv Member

No, I am not looking for a like button for an individual post. I want to include a like button to a specific page on facebook. This link would remain the same on every page.

tootiefrutie
tagDiv Member

I’m trying to add another query/loop to the mobile homepage. I’d like to display latest posts from both “News” and “Podcast” categories. I’ve duplicated the loop, however nothing is being rendered the second time. Why?


<!-- begin Podcast loop -->
<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span><?php //echo $td_list_custom_title; ?>Latest Podcasts</span></h4>
<?php }

$posts_per_page = get_query_var('posts_per_page') ? get_query_var('posts_per_page') : 5;

// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
'category_name' => 'Podcast',
'posts_per_page' => 5,
);
query_posts($wp_query_args);

locate_template('loop.php', true);
echo td_page_generator_mob::get_pagination();
wp_reset_query();
?>
</div>

<!-- begin News loop -->
<div class="td-container td-pb-article-list td-main-content" role="main">
<?php if ( empty( $paged ) or $paged < 2 ) { ?>
<h4 class="block-title"><span><?php echo $td_list_custom_title; ?></span></h4>
<?php }

$posts_per_page = get_query_var('posts_per_page') ? get_query_var('posts_per_page') : 5;

// query used on Latest Articles section
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
'category_name' => 'News',
);
query_posts($wp_query_args);

locate_template('loop.php', true);
echo td_page_generator_mob::get_pagination();
wp_reset_query();
?>
</div>

tootiefrutie
tagDiv Member

I’m using Newspaper 7.4 and WP 4.6.1. Here is an example of a user which has an avatar image assigned to their user profile but their author page does not display it : http://churchleaders.kinsta.com/author/mbriggs

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)