I thought I could figure this out, but am stuck.
I need to create a new template for a page which will list all listings that have a custom field in map-city such as Cincinnati.
I think I am getting somewhere with WP_query shown in the link, but I am stuck: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
This tag “$query = new WP_Query( ‘meta_value=Cincinnati’ );” sounds like I am in the right direction, but how do I use it in the theme?
This reply is for PremiumPress customers only.
408
Views
2
Replies
Copyright © 2010-2025 PremiumPress Limited.
I thought I could figure this out, but am stuck.
I need to create a new template for a page which will list all listings that have a custom field in map-city such as Cincinnati.
I think I am getting somewhere with WP_query shown in the link, but I am stuck: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
This tag “$query = new WP_Query( ‘meta_value=Cincinnati’ );” sounds like I am in the right direction, but how do I use it in the theme?
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now