WordPress.org

Ready to get started?Download WordPress

Forums

WP Single Post Navigation Within Category
Can the buttons be blocked to appear in some categories (2 posts)

  1. satyaki
    Member
    Posted 1 year ago #

    Hi,

    Thanks for the nice plugin.

    I hope you can help me with one small request.
    I am a newbie but my question might take only a couple of seconds for you to answer.
    Sorry to bother you with such a noob question.

    I do not wish the prev/post switches to appear in posts of certain category.............

    In your plugin STYLE.CSS file you have put the option to exclude the switches to show up in a mobile device......

    ----------------------------------------------

    @media screen and (max-width: 1024px) {
    .wpspn-area,
    #wpspn-nextpost,
    #wpspn-prevpost {
    display: none;
    }
    }

    -----------------------------------------------

    I guess, just like the line "@media screen and (max-width: 1024px)" we can put some code that will tell the program to not display anything for certain categories.

    Can you help me to work this out?

    Thanks for your time.

    http://wordpress.org/extend/plugins/wp-single-post-navigation-within-category/

  2. satyaki
    Member
    Posted 1 year ago #

    Hello,

    I was wondering if I could insert a line like this in the single.php file of my theme

    -------------------------

    <?php if ( in_category('3') ) { wdpv_vote(); } ?>

    -------------------------

    However, I am confused about what to write instead of "{ wdpv_vote();}"

    I am not using the 'vote' plugin but yours instead.

    Please help me out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic