• hello,

    Can you please help me with conditional tags for question category pages?

    I have 3 categories and for each page i want to run js script that will attach special var (cat id) to url. It will be used to set default related category when people will click on ask button (.ap-btn-ask):

    <script type=’text/javascript’>

    $(document).ready(function(){
    $(‘a.ap-btn-ask’).attr(‘href’, ‘\/questions\/ask\/?cat=13’);
    });

    </script>

    or maybe you know easy way how to grab category id?

    Thanks for a good plugin!

    https://wordpress.org/plugins/categories-for-anspress/

  • The topic ‘Conditional tags’ is closed to new replies.