How to make custom RSS feed using the post title?
-
Hi,
I want to display RSS content on each post based on the title of each post.
For example,
[wp_rss_retriever url=”https://news.google.com/search?q=%5Bpost_title%5DE&hl=en-US&gl=US&ceid=US%3Aen” items=”10″ excerpt=”50″ read_more=”true” credits=”true” new_window=”true” thumbnail=”200″ cache=”7200″]I created a function for shortcode [post_title] in the theme functions.php file.
function post_title_shortcode(){ return get_the_title(); } add_shortcode('post_title','post_title_shortcode');
But it’s not working. I need the [post_title] value to be processed before the RSS url is checked. Right now it’s not.
Any ideas how to make this concept work here?
Thanks for your help!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to make custom RSS feed using the post title?’ is closed to new replies.