Show Custom Post From Logged In Author

I fixed the issue myself. What i was doing wrong was the query_posts line i had read query_posts( array( ‘post_author’ => $current_user->ID,’post_status’ => ‘publish’ , ‘post_type’ => array( ‘user_lists’ ) ) ); And the correct way should be query_posts( array( ‘author’ => $current_user->ID,’post_status’ => ‘publish’ , ‘post_type’ => array( ‘user_lists’ ) ) );

How to include Related Posts in WP RSS feed

You have to use the_content and the_excerpt_rss hooks. You can do this like this: function rss_append_footer($content) { if(is_feed()) { $related_posts_html = … // I assume you already can compute it $content .= $related_posts_html; } return $content; } add_filter(‘the_content’, ‘rss_append_footer’); add_filter(‘the_excerpt_rss’, ‘rss_append_footer’);

How can I change the look of a post as is displayed

In TwentyTwelve index.php: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content’, get_post_format() ); ?> <?php endwhile; ?> the line in the middle is loading the content.php to show the posts on the homepage. a. In content.php, the_post_thumbnail() in line 18 is responsible for the image, specifically the Featured Image, of a post. … Read more

Get current post’s child page?

$ancestors = array(); $ancestors = get_ancestors($post->ID,’page’); $parent = (!empty($ancestors)) ? array_pop($ancestors) : $post->ID; $parent should be the topmost page parent. However, if you are using a WordPress generated menu there is a pretty good chance that there is already a item identified by a CSS class as the parent. Take a good look at the … Read more