Question
Im creating my own theme. When I have a clean wordpress installation, there are some default widgets in the sidebar (search, category, recent posts etc). I know that I can remove them from the sidebar by adding a widget to ...
0
1 day 0 Answers 4 views

Question
How to filter recent comment by post meta value. I have a key “target” in post_meta, and I want to display in my new recent comment widgets. My code : $comment = get_comments( array( ‘number => $instance[‘number’], ‘meta_query’ => array( ‘meta_key‘ => ‘target’, ‘meta_value’ => array(‘public’) ) ); I think the ...
0
, 3 days 0 Answers 9 views

Question
Im trying to do an extended WP_Widget_Text, and to be professional, lets use a decorated design pattern. This is all I have: <?php namespace X; class CustomHtml extends WP_Widget { /** * @var WP_Widget_Text ...
0
5 days 0 Answers 13 views