• Resolved deckchair

    (@deckchair)


    Hi,

    Great plugin, have successfully integrated with my theme using some of the posts in this forum.

    Lastly I need to get it working with this plugin:
    https://en-gb.wordpress.org/plugins/content-views-query-and-display-post-page/

    There is a free and a pro version. If you can figure out the standard free version I’m sure I can figure out how to do modify the pro one.

    I believe this could be a good one to solve for, the plugin has 40k+ downloads on the free version, and by ensuring compatibility, some users could simply use this plugin in their themes rather than modifying for every theme manually.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter deckchair

    (@deckchair)

    Fixed(!):

    Change:

    $html = wp_get_attachment_image( (int) $thumbnail_id, $thumbnail_size, false, $gargs );

    — TO —

    $html = get_the_post_thumbnail( $post->ID, $thumbnail_size, $gargs )

    In function: “static function _field_thumbnail( $post, $_fargs ) {
    In file: “content-views-query-and-display-post-page/includes/html.php

    SO how did you get the pro to work?

    Plugin Author David Aguilera

    (@davilera)

    Hi @deckchair! That’s great news; I’m happy to see you were able to fix the issue.

    Indeed, our plugin only works if the function (get_)the_post_thumbnail is used. Your theme didn’t use it originally, but after your editing it, it does.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Content Views Plugin Compatibility’ is closed to new replies.