Archived

This topic is now archived and is closed to further replies.

  • 0

Strange problem with Latest Post footer item

Question

Posted · Report post

The default footer for PlatformPro includes a "Latest" column that shows the headline and excerpt for the most recent post. I'm using The Events Calendar and naturally I don't want Event posts to show up there, so I'm using the WP Hide Posts plugin to hide the Event category posts. I think that's causing this really odd bug: The headline and permalink for the most recent "events" post is showing, but the excerpt from the most recent non-events category post is shown underneath that. If someone could tell me how to modify that footer column so it would ignore the Events category, then I could take care of this issue, but I don't know how to modify that code. I normally hate having to hack the actual files because that makes updates so challenging, but in this case it probably just means a single line change, right?

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

Wow beautiful site. The footer pulls in the most recent post using the `get_posts()` function. I'm not familiar with events posts... is this a plugin? Normally there are two types of posts in WP public and non-public. The features for example are non-public.

Share this post


Link to post
Share on other sites

Posted · Report post

On every single page of the site the footer text pulls the first part of the page content. If it's a page, it pulls whatever comes first (caption or body text). If it's a post, it does the same. But the headline is always the most recent post. I disabled all the plugins and it still did the same thing, so I'm stumped.

Share this post


Link to post
Share on other sites

Posted · Report post

I'll take a look at this for you; and hopefully patch to solve your error condition.

Share this post


Link to post
Share on other sites

Posted · Report post

Curiouser and Curiouser: I deactivate the WP Hide Post plugin, and now the headline is from the latest non-event post, as it should be. But the excerpt, instead of coming from that same post, is from the text on the home page! Strange or what? You can see it for yourself at www.showdances.com

Share this post


Link to post
Share on other sites