WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
And custom types??? (2 posts)

  1. pixow
    Member
    Posted 3 years ago #

    Hello,

    I've tried this plugin and it seems crash with 'custom types'. Maybe I've done something wrong?

    somebody has tried it?

    thx!

  2. daitya
    Member
    Posted 3 years ago #

    Hi pixow, have you figured it out since? Hope you didn't give up. The plugin is working great for me.

    If you found that it was working straight out of the box, without a customized template, then the problem could be the path to the template you want to use.

    For earlier versions of this plugin (prior to v.18.3, the latest as of Feb 14, 2011), the documentation instructs to create a folder named list-category-posts inside wp-content/themes/your theme/ and copy or move the 'default.php' from wp-content/plugins/list-category-posts/templates to the new folder you have created, then edit it to your heart's content, save as 'custom_template.php' or whatever name. Next, in the shortcode, call it as follows: [catlist id=x template=custom_template]. Replace 'custom_template' with the actual name of your custom template, minus the php extension.

    This did not work for those of us using child themes, for the reason that the 'STYLESHEETPATH' call in the file 'list_cat_posts.php' looks inside the child theme, not the parent theme. One solution lay in changing 'STYLESHEETPATH' to 'TEMPLATEPATH', which leads to the parent theme. The better solution lay in creating the folder 'list-category-posts' inside the child theme, and copying/moving the templates there, rather than in the parent theme. This ought to save your plugin template whenever you perform an upgrade.

    The latest update to the plugin has taken account of this, and allows for search in either the parent theme or child theme, so you no longer have to tinker with the path name.

    Suggest you update the plugin and see if it works as it is. Then have a go with creating your own template based on default.php. Don't forget to create the folder 'list-category-posts' inside your theme's folder - whether parent or child, and save the template there. Then call it in your shortcode.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic