• I have this set up and it seems really simple. Create the shortcode and add it to the page. Trouble is that it doesn’t dsiplay the right posts, i.e. the ones for the category selected. I have one Category where there is just one post and it displays that one OK but none of the others seem to work, in fact I just get a list of the headers of the same page, which isn’t even in that category.

    Any ideas please

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • What plugin? URL to download please.

    Thread Starter michaelseall

    (@michaelseall)

    I have tagged this thread with the plugin’s tag and edited the title.

    I can’t duplicate your problem but I do encounter problems. For instance when using the WordPress Default theme and clicking on the Edit link presented with edit_post_link() it edits the last post displayed by the shortcode, not the post where the shortcode is used.

    It would seem the post query is getting polluted by the plugin/shortcode. Also some of the variables in the plugin seem to be wrong–for instance this code get_permalink($rdcsc_posts ->ID) probably should be get_permalink($post->ID) since it is used inside foreach($rdcsc_posts as $post).

    I’d recommend the plugin author use a new WP_Query.

    It seems this will work okay when invoked with do_shortcode in a template.

    In the meantime you might look at:
    http://wordpress.org/extend/plugins/list-category-posts/
    http://wordpress.org/extend/plugins/simple-posts-list/

    Thread Starter michaelseall

    (@michaelseall)

    Michael
    Thanks for your efforts. For what it is worth, I tried this plugin because List Category Posts didn’t work either.
    I don’t know whether it may be the Arjuna theme that is screwing things up.
    What I have discovered is that if you select a Category with only one matching post, it works fine. If there is more than one post, it displays the correct number of entries but displays the name of the current page, date and editor instead of the Post title, date etc. so that you just get a list of the current page etc., over and over again.
    If you select one of those entries, it just reloads the current page.
    I will play around with your suggestions and if I can get anything to work, will let you know and set this thread to Resolved.
    Thanks again for your help.

    Thread Starter michaelseall

    (@michaelseall)

    BTW, this is the page http://www.osmington.info/wordpress/?page_id=553 and I have tried creating a new Category and attaching the posts to the new category. There are just three posts in the chosen category and as you can see, there are 3 entries.

    Can you explain what your goal is. For instance, for a given post, display a list of 3 other posts that have the same category as the ‘current post’.

    Thread Starter michaelseall

    (@michaelseall)

    Various people will post information (in the form of Posts) under different Categories (or tags).
    On a relevant page, we want to be able to see a summary of the relevant category of posts so that they can be easily accessed.
    For example, Posts might be under the category of Parish Council OR Events OR Community Plan etc. On the Parish Council Page, we want to be able to see a list of the last say, 10 posts in chronilogical order so that users can find the one that is of interest. Likewise on the Evetns page, and so on. The viewers of these pages will not necessarily be interested in Posts from another CAtegory.
    There are several widgets that seem to do this but we want to be able to display these lists on a Page and we don’t really want a sidebar on that page. If we did have a sidebar, we would want it to be different to the standard one and I’m assuming that that is not possible.
    I hope that makes sense.

    If you are in fact using Pages then the http://wordpress.org/extend/plugins/list-category-posts/ plugin might be the easiest approach.

    Related Posts plugins are another avenue to consider.

    Thread Starter michaelseall

    (@michaelseall)

    That one only works on the sidebar. I have tried it and it is very good, but we didn’t really want the sidebar. I think we are going to try debugging the other one to see if we can get it working first. It does exactly what we want, or would do if it worked!

    That one only works on the sidebar.

    No, you can use a shortcode for that.

    Thread Starter michaelseall

    (@michaelseall)

    Oh! I’ll look again. I did spend some time on it but only succeeded in getting to work on th sidebar. I’ll try again. Thanks

    Thread Starter michaelseall

    (@michaelseall)

    Category-posts is working like a dream.

    Many thanks for your patience Michael

    Thanks for the feedback. I’ve flagged http://wordpress.org/extend/plugins/category-shortcode-w-generator/ as Broken so maybe the plugin author will respond.

    robertdrake

    (@robertdrake)

    I’m late in seeing this, but I’m looking into fixing any bugs. I’ll see if I can tweak the WP-Query to work better. Thank you for exploring the issue.

    robertdrake

    (@robertdrake)

    I’ll be honest, I’ve been stymied in trying to duplicate any of the issues.

    My own website: http://robertdrake.net/, shows the copy I’ve got in it’s working state. The news page is using the code [Category number=’5′ method=’full’ order=’desc’ id=’1′ orderby=’date’].

    What I most curious about is the edit post links. They aren’t supposed to show up at all. If you’re logged in the page might have an edit page link, but when the posts are finally displayed by the shortcode I don’t display any of the edit post code whatsoever.

    I don’t suppose you attempted to use the shortcode within a post instead of page? That would cause some issues…

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin Category Shortcode] not displaying correct posts’ is closed to new replies.