WordPress.org

Support

Support » WP-Advanced » [Plugin: Custom Field Widget] Is there any HTML widget for specific post and category

[Plugin: Custom Field Widget] Is there any HTML widget for specific post and category

Viewing 1 replies (of 1 total)
  • Hi Ashish,
    You’ll need to give a few more details on your issue; though from what you’ve shared, depending on how comfortable you are with editing .php files, you won’t need a plugin.
    You can edit single.php in your theme(used to display posts) and add code that will execute on only some posts
    e.g.

    <?php if(is_single('181')): ?>
    //code
    <?php endif; ?>

    The code //code would only execute on post 181. You can do the same for page.php

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Custom Field Widget] Is there any HTML widget for specific post and category’ is closed to new replies.
Skip to toolbar