0

I have a list of post with different category, I am able to generate feed for a particular category,

But I am trying to create a new custom field in post with the option selection box, If the particluar post is get selected with my custom field then the Feed need to generate based on the selection of custom field on that particular post

For Example : I am trying like this : http://mydominain.com /?post_type=post=customfield=rss_feed

  • 1
    Please use spell check before publishing your question. Thanks! – Brad Dalton Jun 18 '15 at 5:19
  • Is this question about website hosted on wordpress.com? – Robert hue Jun 18 '15 at 5:52
  • Thanks Brad & Rober add the changes , Is there any option to make this feed to get work. – deve cot Jun 18 '15 at 11:40
0

Finally I find solution to hide that particular category which is showed in front end, I use this code to hide the selected category front end : Function.php

add_filter('get_the_terms', 'hide_categories_terms', 10, 3);

function hide_categories_terms($terms, $post_id, $taxonomy){

// list of category slug to exclude, 
$exclude = array('computer');

if (!is_admin()) {
    foreach($terms as $key => $term){
        if($term->taxonomy == "category"){
            if(in_array($term->slug, $exclude)) unset($terms[$key]);
        }
    } 

But any answer for how to get RSS feed by using custome field will be more appreciated .

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.