How to change link with broken link?

I don’t think there is another way to do this than adding 301 redirects manually. You removed old posts and then changed URLs of new posts. So there is no way to tell what new post to show, when you enter old URL. You have to manually tell that post “hieverybody” is new version of … Read more

How to get all post titles starting with numbers and symbols?

Hook into the posts_where filter and add your condition to the query: add_filter(‘posts_where’, function($where){ global $wpdb; return “{$where} AND {$wpdb->posts}.post_title REGEXP ‘^[0-9\$\@\!\?\%]'”; // add other symbols in the regex above ^ }); Then do your query: $my_query = new WP_Query(…); You may want to remove the filter after you get the results (make it a … Read more

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