Skip Navigation

[Resolved] wpv-post-author is NOT working on every post single.

This thread is resolved. Here is a description of the problem and solution.

Problem:
wpv-post-author is NOT working on every post single.

Solution:
User were using the incorrect method to display the post author ID information on single post page.

You can use the following shortcode to display the post author ID:

Author ID: [wpv-post-author format="meta" meta="ID"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Gary Chui 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1270253
Screen Shot 2019-06-17 at 3.10.46 PM.png
Screen Shot 2019-06-17 at 3.10.15 PM.png

I am trying to:
Display Author information in my post single with VIEWS + LAYOUT

Link to a page where the issue can be seen:
Working: hidden link
Not Working: hidden link

I expected to see:
Author ID in all singles

Instead, I got:
Some working and some are NOT.

! One of the attached images shows it works with author ID "1" displayed. and the other one shows wpv-post-author NOT working. (Which is an debug message I've set)

While the 2 URL (posts) created by the SAME author.

Here is the setting in VIEWS:

Content Selection: Post types > Posts
Query Options: unchecked "Don't include current page in query result"
Query Filter: Select items in any relationship as related items of "The current post in the loop" (In fact I've tried "The post where this View is shown", and it return same result)

Content:

<blockquote>
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<hr>
<div class="contentMaxWidth">
  <wpv-loop>
    <div class="container"><h1>Author : [wpv-post-author format='meta' meta='ID']</h1></div>
  </wpv-loop>
</div>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]<p>wpv-post-author NOT working...</p>[/wpv-no-items-found]
[wpv-layout-end]
</blockquote>
#1270373

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That's really strange. Can you please share wp-admin access details so I can check what's going wrong there.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1270429

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - thank you for sharing access details but when I try to access the wp-admin URL it shows me the "This site can’t be reached" message.

Can you please send me working wp-admin access details.

I have set the next reply to private which means only you and I have access to it.

#1271263

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I do not know why you use the view and view cell to just display the post author.

I removed the view cell and instead added the visual editor cell and add the post author ID shortcode as given under with the following layout:
=> hidden link

Author: [wpv-post-author format="meta" meta="ID"]

I can see it's displaying the correct post author ID - Can you please confirm:
=> hidden link

#1271531

My issue is resolved now. Thank you!