rss - Passing arguments to WordPress feed URL -
We all know that the WordPress feed URL is www.mysite.com/feed.
I have edited the feed-rss2.php file to show thumbnails, if a certain GET parameter has been passed. Look at the code given below:
& lt ;? Php if ($ _GET ['c'] == 'thumb with description') A_Cost_ thumbnail (array (100,100)); ? & Gt; But when I open the feed address like this:
www.mysite.com/feed?c=detailswiththumb
The code does not What logic can be passed in this way? Am I forgetting something? help please.
First of all, the function is not get_the_post_thumbnail () the_post_thumbnail ().
Again, this is another problem with your code, you have to pass the post ID to get thumbnails (to see more information).
So, first you have to remove the Post ID from anywhere and then only you will be able to get thumbnails. But, I think that it will be very difficult, so try to leave this idea, because it will take you a lot of time and no one is going to reach that path.
Comments
Post a Comment