• Resolved Anthony Artmann

    (@anthony-artmann)


    In my child themes “list-category-posts” folder I have two templates.

    lcp_default_template.php (copied from the plugin templates folder)

    and

    lcp_posts.php ( my own custom template )

    I am using the following shortcode in my news page:

    [catlist name=news_item template=lcp_posts numberposts=5 pagination=yes excerpt=yes date=yes author=yes thumbnail=yes thumbnail_size=full posts_morelink=”Read more”]

    The problem is that template=lcp_posts is ignored and the catlist uses the lcp_default_template instead.

    I simply cannot link to my lcp_posts template.

    Please advise.

    https://ww.wp.xz.cn/plugins/list-category-posts/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Cannot reference template by name’ is closed to new replies.