How do I use custom templates?
-
I don’t understand how to edit custom templates and the instruction is not specific. It says to place template php file in the theme directory in “list-category-posts” subdirectory. That’s what I did. Now when I modify default.php, none of the changes take any effect.
I’m using this shortcode inside a page:
[catlist id=”7″ tags=”uslugi” template=”default.php”] and it just produces an unordered list with post titles of this category (7) and tag (uslugi).
Even if I edit default.php and change ul to div and lcp_catlist to “I made this” like this:$lcp_display_output .= $this->open_outer_tag(‘div’, ‘i made this’);
I still only get the default list with lcp_catlist class…
Default.php file just seems to list all possible instructions? It’s not a template but some kind of reference? So how do I make a template that displays a post tile wrapped ina div with a custom class followed by post thumbnail wrapped in a div with a custom class?
I really like this plugin so I’m hoping someone can explain templates to me…
Wordpress version: 5.5.1
LCP version: 0.83.1
- The topic ‘How do I use custom templates?’ is closed to new replies.