picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

Cannot switch between templates #516

Closed miracle777 closed 6 months ago

miracle777 commented 6 months ago

wp-content/themes/luxech/list-category-post and created a folder for the specified template in the theme. In this folder, I created two template files. category-list-old.php category-list.php

Up to now, the shortcode

[catlist template='category-list-old' name='information' thumbnail='yes' thumbnail_size='80,80' date_modified='yes']

but I cannot switch between the two. The shortcode is working because the display changes when I change the content.

Please let me know how to fix this.

miracle777 commented 6 months ago

Sorry. The s was missing from the folder name. It has been corrected as shown here. list-category-posts But I still can't load the template.

miracle777 commented 6 months ago

I fixed it. The template name has changed, but this time the cause is that the single quotation marks were not closed in the shortcode. With the following code, I was able to display it.

catlist template='list-1' name='information' thumbnail='yes' thumbnail_size='80,80' date_modified='yes'