Skip Navigation

[Resolved] "WordPress Archives" can not get "Fields" data.

This support ticket is created 5 years, 2 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1198070

Please see below URL.
hidden link

"Facebook" don't have data.
But, in fact, "Facebook" have URL data.

This author page use "WordPress Archives".
hidden link

Please tell me that why the data isn't seen ?

This site is test site.
I mede an account of this site for you.
Please use the account written in "#1198058" private fields of the other ticket.
Please feel free to use and change anything in this site.

#1198262

Hi, if you want to display information about the author using conditionals, it's best to do this in a View. You can create a View of Users filtered by User ID, where the ID is set by a shortcode attribute. Then pass the author's ID into that shortcode attribute. I have a shortcode that can help. Add this to your child theme's functions.php file:

function get_author_id_in_archive_func($atts) {
  return get_the_author_meta('ID');
}
add_shortcode("get_author_id_in_archive", "get_author_id_in_archive_func");

Then your View shortcode:

[wpv-view name="Your Users View" users="[get_author_id_in_archive]"]
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.