وردپرس

How to Filter Posts by Custom Field (Author Name)?


Hello,

I have a custom field for author names. These are the authors of literary works my client is posting (so in this sense, it is not the WordPress post author {which would be my client}, but the author of the work.) It is just a text field with the first and last name of the author.

How can I use this field to create a custom dropdown archive filter based on the author and then have it filter and display the posts to show the literary works written by this author? Can I somehow use it in conjunction with “wp_dropdown_categories” or “wp_list_authors”?

Example of this function (please see “Authors” sidebar): https://www.e-flux.com/notes/

Thank you for your help!

  • This topic was modified 3 minutes ago by jenelevate.
  • This topic was modified 2 minutes ago by jenelevate.
  • This topic was modified 2 minutes ago by jenelevate.
  • This topic was modified 45 seconds ago by jenelevate.

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا