Popular posts param from wpp_custom_html is a string, not an array
-
I have been following the documentation and examples closely and I was happy to use the
wpp_custom_html
filter to build the output myself and avoid using it as a widget. However, for me the$popular_posts
param in the filter’s callback is an html string and not an array of posts, as documented. Is there something that I can do to fix this? Here are the steps I have completed so far to get to this point:* Install and activate plugin in WP admin
* Usewpp_get_mostpopular()
on template page
* Createwpp_custom_html
filter to customize HTML output
* BLOCKED – Can’t loop because$popular_posts
param is a string, not an array
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Popular posts param from wpp_custom_html is a string, not an array’ is closed to new replies.