Attachment Post Type is not working
-
Hello,
I am trying to display popular attachments at the home page (as I already did with posts) and for some reason wpp_get_mostpopular() is not working.
If I use the variable ‘post_type’ => ‘attachment’, it says: Sorry, no data so far.
This is the complete code:
$args = array( 'header' => 'Entradas más populares', 'range' => 'last30days', 'thumbnail_width' => 150, 'thumbnail_height' => 150, 'stats_category' => 1, 'post_type' => 'attachment', 'post_html' => '<li>{thumb} <a class="text-title" href="{url}">{text_title}</a> <p class="views">{views} Visitas</p> </li>' ); if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular( $args );
It does not work in wp-admin/options-general.php?page=wordpress-popular-posts&tab=stats either.
But if I add wpp_get_views() to the attachment page it shows the correct views count.
So the numbers are stored in the database, but can′t be displayed.I also tried with [wpp post_type=”attachment”]
Do you have any ideas which could be the problem?
Thanks in advance,
Kind RegardsThe page I need help with: [log in to see the link]
- The topic ‘Attachment Post Type is not working’ is closed to new replies.