• Resolved plumwd

    (@plumwd)


    I am using the plugin to show a list of posts on one of my pages. All the posts listed are showing the embedded page author, vs the author of the actual post. This list is at the bottom of the linked page. What is the correct way to show the author?

    I am using custom HTML. This is my shortcode:

    [wpp cat="-10294" excerpt_length=60 limit=3 thumbnail_width=333 thumbnail_height=222 stats_date=1 stats_author=1 post_html='
    <ul>
     	<li><article class="post fusion-column column col col-lg-4 col-md-4 col-sm-4">
    <div class="fusion-flexslider flexslider flexslider-hover-type-none">
    <ul class="slides">
     	<li class="flex-active-slide" style="width: 100%; float: left; margin-right: -100%; position: relative; opacity: 1; display: block; z-index: 2;">{thumb}</li>
    </ul>
    <ul class="flex-direction-nav">
     	<li class="flex-nav-prev"><a class="flex-prev flex-disabled" tabindex="-1" href="#">ο„„</a></li>
     	<li class="flex-nav-next"><a class="flex-next flex-disabled" tabindex="-1" href="#">ο„…</a></li>
    </ul>
    </div>
    <div class="recent-posts-content">
    
    <span class="vcard" style="display: none;"><span class="fn">{author}</span></span><span class="updated" style="display: none;">{date}</span>
    <h4 class="entry-title">{title}</h4>
    <p class="meta">By <span class="vcard"><span class="fn">{author}</span></span><span class="fusion-inline-sep">|</span><span class="updated" style="display: none;">{date}</span>{date}<span class="fusion-inline-sep">|</span>
    
    {summary}
    
    </div>
    </article></li>
    </ul>
    ']

    View post on imgur.com

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @plumwd,

    That’s odd. Unfortunately I’m not near a computer right now to check. I’ll have a look and get back to you as soon as I can, alright?

    Thread Starter plumwd

    (@plumwd)

    Thank you so much Hector! I appreciate your time.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @plumwd,

    Just played around with your shortcode and for me the list displays the right author for each post as expected:

    Shortcode as seen in editor

    Shortcode rendered

    (I reduced the size of the thumbnail)

    See it in action here.

    So, we’re either in the presence of a bug (that I cannot reproduce with a fresh WordPress install) or it’s something else πŸ˜›

    • What version of the plugin are you using?
    • WordPress version?
    • Active plugins?
    • Any other info that might prove useful? (eg. reproduction steps)
    Thread Starter plumwd

    (@plumwd)

    I’ve confirmed that it is showing the author of the page that the shortcode is embedded in and not the content author.

    Does the shortcode need to be in the loop?

    On this particular page I just added it to the post editor.

    Using WPP 4.2.2
    WP 5.1.1

    I have many other plugins. We are using Avada for our theme.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Nope, the [wpp] shortcode works just like every other shortcode out there. I added it to the post editor as well (Gutenberg in this case but it should work with the “old” editor as well.)

    Does it still happen if:

    • … you use a different theme as well? (eg. Twenty Seventeen, Twenty Nineteen, etc)
    • … all the other plugins are disabled?
    Thread Starter plumwd

    (@plumwd)

    When I use a different theme it works. Seems there is a conflict with Avada then.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, that narrows things down a bit. Thanks for the update.

    Now, the issue is I don’t have access to a recent version of the Avada theme. The one I have access to is from a project for a client I worked on a year ago I think and it’s version 5.4.2 which by now is probably quite outdated. I’ll try installing Avada 5.4.2 on a fresh WordPress setup and see if I can reproduce the problem there.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ok, here are the results:

    WPP’s shortcode in Avada’s text Block

    WPP's shortcode in Avada's Text Block

    WPP’s shortcode as rendered in the frontend by Avada 5.4.2

    WPP's shortcode as rendered in the frontend by Avada 5.4.2

    Note that I only installed the very minimum requirements to get the theme running for the test:

    • Avada 5.4.2
    • Fusion Builder 1.4.2
    • Fusion Core 3.4.2
    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m marking this topic as resolved due to inactivity and because I wasn’t able to reproduce the issue with the Avada theme.

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

The topic ‘Listed Author is Incorrect. Showing Author for Current Page’ is closed to new replies.