Last Blog Post on Static Page
-
Hi Everyone,
I have a two-part issue: (1) Getting the latest blog post on the static page, and (2) getting some upcoming events from a calendar plugin I’ve installed on that page as well.
For the blog post, I am wondering if there is a piece of code I can put in my index.php template that will essentially say “If this is page id 4, put the latest blog post here”.
Can I get away with simply putting code in the index.php template, or do I need to create a separate “home” template?
Any help with that is appreciated.
On to the events part, I installed a plugin called Upcoming Gigs which was designed for bands. The plugin lists upcoming appearances/commitments/etc on a page on the site. On the front page along with that latest blog post, I would like to somehow show the first 2-5 events on the list, the ones which are soonest.
There are two widgets with this plugin, one details the next event and the other lists the next few.
Does anyone know of a way I could “put the widget” on the page? I tried looking through the plugin’s php file but after ten minutes gave up. The author’s website is not support-friendly at all so I figured I would ask here.
I appreciate your help in advance, if you have any questions I will get back to you ASAP.
The topic ‘Last Blog Post on Static Page’ is closed to new replies.