WordPress.org

Ready to get started?Download WordPress

Forums

Little help with coding please (2 posts)

  1. ThreeVisual
    Member
    Posted 5 years ago #

    Is it possible to get something like the following to work?....

    if category is 'x' then show this code...

    <strong>Select your rating:</strong> <?php if(function_exists('the_ratings')) { the_ratings(); } ?><br />

    otherwise, show nothing.

    If it is possible would someone kindly help me out with the coding to place into my template.

    Thanks

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    Check out Conditional Tags in Codex.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.