• Please review my first word press website https://www.rescuenews.com.ng

    Am having a small problem, how do i make a widget appear on just one page?

    For example, in my newspaper website, on the Entertainment category, i want to place a widget on the page that only shows posts that are under the entertainment category.

    I can use the post widget to do that, now how do i make the widget appear on just Entertainment page alone?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • not sure about plugins/widget. if you wish to go via code editing either:
    1. create a custom category-9.php (entertainment category ID is 9) file and insert loop for showing posts of this category, or
    2. edit category.php file, insert a condition check for is_category('9') and display separate loop.

    work on child theme, take backups, etc etc..

    PS: try giving appropriate titles next time

    The Widget Logic plugin will let you assign a widget to appear only when a condition is met. For example, ‘is_page(122)’ will show the widget on only the page with ID=122.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A newbie needs help’ is closed to new replies.