• Hello everyone,

    I had this issue which I can’t solve it out.
    I need to have a home page which shows 1 post from a specific category, and then I want to have another page which shows all the posts from another category.

    Currently I have a front-page.php and a home.php, they make exactly what I want but when it comes to use the widget logic to define a widget in a specific page, it doesn’t work how I want.

    If I write: is_home() the widget shows on both pages.
    If I write: is_front_page() the widget doesn’t show anywhere.

    I need a specific widget to be displayed on the home page, and another in the blog page… How can I do this?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter laudes90

    (@laudes90)

    nobody?

    Hi,

    is_home()-
    This method is used to show the latest 10 posts. This page is the area where all the recent posts resides.

    is_front_page()-
    -Under Settings ->Reading ->Front page Displays ->We can select static page or latest posts. This method shows only the selected elements. For example, it will display posts or static pages based on the selection we made.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom front-page and custom blog page and widget logic’ is closed to new replies.