• Resolved rajs1010

    (@rajs1010)


    Hi Greg,
    how to add tags to advert ads so that it can be easily searchable in the search bar of my site and even it will help in Google SEO ? ..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the tags for adverts you can enable by adding the code below in your theme functions.php file

    
    add_filter('adverts_post_type', 'my_adverts_post_type', 10, 2);
    function my_adverts_post_type($args, $type) {
      if($type != 'advert') {
        return $args;
      }
    
      $args["taxonomies"][] = "post_tag";
      return $args;
    }
    

    Please note that this will add the tags to wp-admin / Classifieds panel, in the frontend when adding an Ad the tags will not be visible as the [adverts_add] does not support tag field i am afraid.

    Thread Starter rajs1010

    (@rajs1010)

    Thanks for fast quick reply and support Greg.its working fine…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add tags to advert ads’ is closed to new replies.