• Resolved nagyv

    (@nagyv)


    hi,

    I would like to use the category-posts widget from my template code as described here: https://codex.ww.wp.xz.cn/Function_Reference/the_widget

    What is the widget’s classname I should pass in to the_widget?
    I’ve tried the_widget('categoryPosts.Widget', 'cat=3&title=Testing');
    but it ends with a line in my php logs:

    PHP Notice: Undefined index: categoryPosts.Widget in /home/jonny/skynews/wp-includes/widgets.php on line 1039

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

The topic ‘How to use it with the_widget function?’ is closed to new replies.