I have a weird one that is driving me nuts! When I create postgallery_slider or recent_posts shortcodes on my homepage, the most recent posts in my blog do not appear, but olders ones do. I've tried comparing the pages (doublechecking that I've selected the correct category, and that it's in a published state etc etc) and can see nothing wrong with the posts. I've created a test post with basic text in it, but it makes no difference.
The new posts (inc my test post) all appear fine on the blog page itself and in a recent posts sidebar widget. The problem just seems to be the selecton via a shortcode.
I'm using WP3.3 and DynamiX 2.8.7 (it's worth noting that I updated to 2.8.7 today and it made no difference to the behaviour).
I'm running a local install (MAMP) currently so I can't point you at a test site.
Yes, I've tried the various options (order/sort/categories etc). Here is what I'm using at the moment.
postgallery_slider content="textimage" lightbox="yes" categories="General News,In The Media,On The Web,Tour News" undefined id="0" sortby="date" orderby="DESC" limit="6" timeout="6"/
I wonder if the upgrade to wp3.3 has changed the format of post data/fields, and the shortcode isn't selecting posts added since 3.3?
Nothing really. I've just created a new page, with just the following shortcode on it:
postgallery_slider content="textimage" categories="Emptyspiral News,General News,In The Media,On The Web,Tour News" undefined id="0" sortby="date" orderby="DESC" limit="6" /
Again, the most recent posts in (which are in the General news category) just don't appear. I've also just created a test post and that doesn't appear either. I'll do some more testing but I'm kinda stumped :/
OK… It's something to do with the categories. After some testing it looks like new items in the 'General News' category were not appearing, but if I changed a post to another category it would appear.
I closely examined the General News category and noticed a couple of things. Firstly the 'slug' was 'general' and so I changed it to 'general-news' secondly that category is the 'default' post category in general WP settings. I changed that to 'uncategorized'.
It's now working. 🙂
The slugs do have to match the name in some way – I know something regarding this has changed over the past few revisions of WordPress as I do not remember it being so reliant on the slug matching the name.
I'll look into it further but I guess it works to a degree because the slugs are supposed to match the name (though no idea what's going on with uncategorized).
You must be logged in to reply to this topic.