Disable every rss feed except home feed

// remove_author_feed_link( $link, $feed ); // As we do not pass $link and $feed is empty by default, function just exits function remove_author_feed_link() { return; } add_filter( ‘author_feed_link’, ‘remove_author_feed_link’ ); function remove_category_feed_link() { return; } add_filter( ‘category_feed_link’, ‘remove_category_feed_link’); function remove_search_feed_link() { return; } add_filter( ‘search_feed_link’, ‘remove_search_feed_link’ ); function remove_tag_feed_link() { return; } add_filter( ‘tag_feed_link’, ‘remove_tag_feed_link’ … Read more

clickable title of 2 post on mainpage USING functions.php

here is answer 🙂 add_action(‘generate_after_header’, ‘work_only_on_front_page’, 999); function work_only_on_front_page(){ if ( is_front_page() ) { echo ‘ any text with divs’; $args = array( ‘posts_per_page’ => 2, // we need only the latest post, so get that post only ‘cat’ => ‘1’ // Use the category id, can also replace with category_name which uses category slug … Read more

How to Delete Posts by title?

Like keepkalm said I’d find the list of post IDs from the database: select id, post_title FROM wp_posts where post_title like ‘%Pharmaton%’ or post_title like ‘%Winston Blu%’ or post_title like ‘%Kefir%’ or post_title like ‘%Tetradox%’ or post_title like ‘%Passport Sco%’; and then use the list of IDs with wp-cli’s wp post delete which accepts a … Read more