cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

post_html and summary output is empty when using visual composer plugin #132

Closed gooee closed 7 years ago

gooee commented 7 years ago

hi,

Just seeing issues with post_html summary output when used in conjunction with the visual composer plugin. When you build content with this plugin the summary returns empty.

Wondering if there's a fix or could you suggest a solution?

cabrerahector commented 7 years ago

Hey there!

So the other content tags (eg. {title} {views}, etc. are working fine except for {summary}? That's odd.

Please try that same wpp shortcode on a regular WordPress page (no Visual Composer stuff) and report back what happens.

gooee commented 7 years ago

Hi Hector,

Appreciate the speedy reply! :0

Standard pages not yet using visual composer return content all works as intended.

screen shot below and code sample attached

cheers

Jakob[image: Inline images 1]

On Fri, 24 Mar 2017 at 10:18 am, Héctor Cabrera notifications@github.com wrote:

Hey there!

So the other content tags (eg. {title} {views}, etc. are working fine except for {summary}? That's odd.

Please try that same wpp shortcode on a regular WordPress page (no Visual Composer stuff) and report back what happens.

On Mar 23, 2017 7:10 PM, "gooee" notifications@github.com wrote:

hi,

Just seeing issues with post_html summary output when used in conjunction with the visual composer plugin. When you build content with this plugin the summary returns empty.

Wondering if there's a fix or could you suggest a solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cabrerahector/wordpress-popular-posts/issues/132, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADCffJO21tNxOnOkOofBQc5Gsa-IN9s4ks5rovvWgaJpZM4MnepO .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cabrerahector/wordpress-popular-posts/issues/132#issuecomment-288889350, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUeJmhusGSyXtecP1a7C8Pe4Fl8G6c_ks5rov3WgaJpZM4MnepO .

/ Render Most Popular posts to FAQ section on homepage /
function mostpopular_func() {
 $args = array(
 'stats_views' => 0,
 'range' => 'weekly',
 'order_by' => 'views',
 'post_type' => 'post',
 'excerpt_by_words' => 1, 
 'excerpt_length' => 40,
 'post_html' => '

  • {title}

    {summary}
    Read more
  • '
 );

 return wpp_get_mostpopular($args);
}
add_shortcode( 'mostpopular', 'mostpopular_func' );

    cabrerahector commented 7 years ago

    Got a question: why are you creating a custom shortcode when WPP provides its own shortcode out of the box?

    I don't see anything wrong with your code and while it shouldn't make any difference please try with this one just to be sure:

    [wpp stats_views=0 range='weekly' order_by='views' post_type='post' excerpt_by_words=1 excerpt_length=40 post_html='<li><div class="accordion-item"><h2 class="entry-title">{title}</h2><div class="entry-content">{summary}</div><span class="more-link">Read more</span></div></li>']

    If it still breaks on Visual Composer please let me know and I'll look into it.

    gooee commented 7 years ago

    hi Hector,

    Sorry Just got around to test your shortcode now.

    unfortunately no luck.

    fyi: the reason i created it as a specific shortcode by itself was so i could ensure someone in the team couldn't alter it, and that i then use a template part to add the shortcode in the footer of some other templates

    Way there something else you like me to try?

    Kind regards,

    Jakob de Zwart

    0403 100 972

    jakob@jakobdezwart.com [image: visit jakobdezwart.com] http://www.jakobdezwart.com/ [image: facebook] https://www.facebook.com/jakobdezwartphotography [image: twitter] https://twitter.com/jakobdezwart [image: pinterest] http://www.pinterest.com/jakobdezwart/ [image: instagram] http://instagram.com/jakobdezwart [image: linkedin] http://www.linkedin.com/company/jakobdezwart-photography

    What's up: Did you know 10% of all print sales get donated to doggierescue.com http://doggierescue.com?

    On 25 March 2017 at 00:05, Héctor Cabrera notifications@github.com wrote:

    Got a question: why are you creating a custom shortcode when WPP provides its own shortcode out of the box https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages ?

    I don't see anything wrong with your code and while it shouldn't make any difference please try with this one just to be sure:

    [wpp stats_views=0 range='weekly' order_by='views' post_type='post' excerpt_by_words=1 excerpt_length=40 post_html='

  • <div class="accordion-item">

    {title}

    <div class="entry-content">{summary}
  • Read more
    ']

    If it still breaks on Visual Composer please let me know and I'll look into it.

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cabrerahector/wordpress-popular-posts/issues/132#issuecomment-289017175, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUeJoYiZvfGH2kUWQkFia9v3AJpd0wMks5ro799gaJpZM4MnepO .

    gooee commented 7 years ago

    hi Hector,

    Did you have any luck?

    Kind regards,

    Jakob de Zwart

    0403 100 972

    jakob@jakobdezwart.com [image: visit jakobdezwart.com] http://www.jakobdezwart.com/ [image: facebook] https://www.facebook.com/jakobdezwartphotography [image: twitter] https://twitter.com/jakobdezwart [image: pinterest] http://www.pinterest.com/jakobdezwart/ [image: instagram] http://instagram.com/jakobdezwart [image: linkedin] http://www.linkedin.com/company/jakobdezwart-photography

    What's up: Did you know 10% of all print sales get donated to doggierescue.com http://doggierescue.com?

    On 29 March 2017 at 14:32, Jakob de Zwart jakob@jakobdezwart.com wrote:

    hi Hector,

    Sorry Just got around to test your shortcode now.

    unfortunately no luck.

    fyi: the reason i created it as a specific shortcode by itself was so i could ensure someone in the team couldn't alter it, and that i then use a template part to add the shortcode in the footer of some other templates

    Way there something else you like me to try?

    Kind regards,

    Jakob de Zwart

    0403 100 972

    jakob@jakobdezwart.com [image: visit jakobdezwart.com] http://www.jakobdezwart.com/ [image: facebook] https://www.facebook.com/jakobdezwartphotography [image: twitter] https://twitter.com/jakobdezwart [image: pinterest] http://www.pinterest.com/jakobdezwart/ [image: instagram] http://instagram.com/jakobdezwart [image: linkedin] http://www.linkedin.com/company/jakobdezwart-photography

    What's up: Did you know 10% of all print sales get donated to doggierescue.com http://doggierescue.com?

    On 25 March 2017 at 00:05, Héctor Cabrera notifications@github.com wrote:

    Got a question: why are you creating a custom shortcode when WPP provides its own shortcode out of the box https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages ?

    I don't see anything wrong with your code and while it shouldn't make any difference please try with this one just to be sure:

    [wpp stats_views=0 range='weekly' order_by='views' post_type='post' excerpt_by_words=1 excerpt_length=40 post_html='

  • <div class="accordion-item">

    {title}

    <div class="entry-content">{summary}
  • Read more
    ']

    If it still breaks on Visual Composer please let me know and I'll look into it.

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cabrerahector/wordpress-popular-posts/issues/132#issuecomment-289017175, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUeJoYiZvfGH2kUWQkFia9v3AJpd0wMks5ro799gaJpZM4MnepO .

    cabrerahector commented 7 years ago

    Hey there!

    Unfortunately, no. The Visual Composer plugin is a paid one and so I can't do any tests unless I buy it - something I'm honestly not really willing to do.

    Is there any chance you could provide me admin access to your site so I can check what's going on?

    cabrerahector commented 7 years ago

    Closing due to inactivity.