WordPress.org

Ready to get started?Download WordPress

Forums

How to insert custom page excerpts onto main page? (4 posts)

  1. spakainas
    Member
    Posted 1 year ago #

    Hi,
    I searched for a solution for few hours but couldn't find any.

    Here's the problem.
    I need that on main page I would see excerpts of three particular pages. No loops are required for that.

    P.S. I know it's possible to do that with Categories but i can't use them because there are really specific menu used in that site.

    Thank you in advance

  2. s_ha_dum
    Member
    Posted 1 year ago #

    I need that on main page I would see excerpts of three particular pages. No loops are required for that.

    Technically, no, but I'd use one.

    Use WP_Query() and give it a 'posts__in' parameter. Then loop over the results to get your excerpts.

  3. spakainas
    Member
    Posted 1 year ago #

    Thank you for this suggestion!
    It worked out really well.

  4. spakainas
    Member
    Posted 1 year ago #

    Case closed :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.