mysql - Extract all users along with yoast metadata description

We currently have a authors list page which shows all users which have at least 1 published post.Within this page I'

We currently have a authors list page which shows all users which have at least 1 published post.

Within this page I'd like to also show the description of the user, but take this from the metadata description field which Yoast SEO plugin adds to we don't have to duplicate data.

From what I've been told "The author meta description added with Yoast SEO can be found in the wp_usermeta table, with the meta_key wpseo_metadesc. Hopefully, this helps your developer extract it and use it on your website."

So is there a way in wordpress to perform the following query:

  1. selects the users id, firstname, lastname, email address and the wpseo_metadesc
  2. where the user has at least one published post.

Thanks Scott

We currently have a authors list page which shows all users which have at least 1 published post.

Within this page I'd like to also show the description of the user, but take this from the metadata description field which Yoast SEO plugin adds to we don't have to duplicate data.

From what I've been told "The author meta description added with Yoast SEO can be found in the wp_usermeta table, with the meta_key wpseo_metadesc. Hopefully, this helps your developer extract it and use it on your website."

So is there a way in wordpress to perform the following query:

  1. selects the users id, firstname, lastname, email address and the wpseo_metadesc
  2. where the user has at least one published post.

Thanks Scott

Share Improve this question asked Jul 4, 2019 at 13:03 ScottScott 101
Add a comment  | 

1 Answer 1

Reset to default 0

After a bit of research, this can be achieved by using the function https://developer.wordpress/reference/functions/get_user_meta/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745343217a4623425.html

相关推荐

  • mysql - Extract all users along with yoast metadata description

    We currently have a authors list page which shows all users which have at least 1 published post.Within this page I'

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信