WordPress.org

Forums

Include blog post in page (2 posts)

  1. NickStrong
    Member
    Posted 4 years ago #

    Apologies as ever if the answer is blatantly obvious, but here goes . .

    I want to be able to include a list of, or extracts from, related blog posts at the end of a (static) page. Related by virtue of having a matching tag (or maybe category - I'd like some advice on that).
    So, for example, a static page about Making Sponge Cakes ends with 'extract' type links to blog posts (from same website) that have been tagged or categorised "sponge" (say).

    Help much appreciated. Thanks in advance.

  2. davidandre
    Member
    Posted 4 years ago #

    <?php query_posts('category_name=sponge');?>

    try that,hope it helps,
    bye

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.