• buzzlightyear

    (@buzzlightyear)


    Rather unusual question this one …

    One my site (www.GreatBlighty.com) I am using the ‘Page to Front’ plugin to always display a particular page as the main welcome page on my blog when you first go to it. If you take a look at the site, you’ll see that about halfway down I have a paragraph of the latest news, goings on etc currently in Great Britain.

    At the moment I edit this page each time I want to update this particular part of the page. When the information goes out of date and I want to replace it with something else I copy and paste the relevant text from the front page into a new post and then file it within my ‘News Archive’ category that I have created. I then type in some new ‘Latest News’ (manually) within the main page. As you can imagine this is somewhat tedious…

    Another twist to my question is that I’m using Google Adsense to display adverts just below the ‘Latest News’ area of the main page. I’m finding however that logically enough the adverts displayed are relevant to the text on the whole page rather than just the ‘Latest News’ part of the page.

    I guess you know by now what the question is going to be …

    Can I make reference to a post at a particular point in the main page that will then actually display the entire post? That way I could type in my ‘Latest News’ articles as a new post and save them in the ‘News Archives’ category whilst at the same time displaying it on the main page at the point I requested with the link. This would also solve my Google Adsense problem as I would put the Google Adsense code within the actual post. This would make the advert content specific to the post rather than the whole page.

    Any ideas with this? I hope so after all that writing! Phew … ;o)

Viewing 4 replies - 1 through 4 (of 4 total)
  • iand

    (@iand)

    You could try using one of the runphp type plugins. You could then use either a plugin like customisable post listing to display the post you want, or maybe use get_posts to create an extra loop in the page (I don’t know what would happen with a get_posts loop in a page, there might be some loop within a loop weirdness).

    moshu

    (@moshu)

    I think since the home.php feature exists in many cases the “bring-this-or-that-to-the-front” plugins became obsolete.
    In this particular case I’d go creating a home.php template.
    For the top ‘welcome msg’ there are at least two solutions: hardcoded in the template or using the this plugin http://guff.szub.net/get-a-post to get a Page included there.
    Further below it I’d use a customized Loop to display only X number of posts from the category ‘Latest News’ or whichever it has to be.

    Thread Starter buzzlightyear

    (@buzzlightyear)

    Sounds complicated! And to be honest possibly surpassing my skills at present … :o(

    moshu

    (@moshu)

    My php skills are also nil, however I am very good in “copy-paste” techniques 🙂
    So, even with your present solution you could use the many query_posts examples given in this forum to avoid the manual updating of the Latest News section.
    For example, take the Loop #1. from this post
    http://ww.wp.xz.cn/support/topic/28203#post-193683
    and edit the cat=1 part to suit your catID# for news… and you are done. Put always your latest news in that category and it will show one – the latest.
    There is no simpler way 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Incorporating Posts within a Page’ is closed to new replies.