WordPress does not support by default custom_field
s archive like for taxonomies (yeah, taxonomies can have categories) but we can create a destination page with page template (linked from the listed custom_field
) and added a searching on the custom_field
, like this (from the listing page):
<?php
if (get_post_meta($post->ID,'_my_meta',TRUE)) :
$key_meta = get_post_meta($post->ID,'_my_meta',TRUE);
endif;
?>
<a href="https://wordpress.stackexchange.com/questions/92473/<?php bloginfo("url'); ?>/?s=<?php echo $key_meta[meta_field]; ?>"><?php echo $key_meta[meta_field]; ?></a>
The destination page’s layout we can customize by preferences.
Related Posts:
- Add custom field to the archive page?
- Filter archive.php by custom meta
- Archive sorting functions by custom fields (front-end)
- Meta query with multiple custom fields for archives page ordering problem
- WordPress archives by custom field and date
- Best way to programmatically remove a category/term from a post
- display specific custom fields
- Add new “Insert Into Post” button with another function
- Custom per-page sidebar widgets .. possible?
- Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
- How to add new custom page or post blocks?
- Transients vs CRON +Custom Fields: Caching Data Per Post
- How to update serialized data in the user meta data
- Unable to save datetime custom meta field using update_post_meta() function
- Guest Author – How can I use custom fields to create guest author link?
- Best way to allow manageable social media URLS?
- enabling custom fields in admin?
- Adding a custom field or metabox to the post-thumbnail widget?
- Using WP Query to search by multiple meta fields
- Get aggregate list of all custom fields for entire blog
- Sort by posts that have a featured image?
- WP_Query display next custom post from today’s date
- Can ordering post list by meta_value cause performance issue?
- How to Identify the Source of a Custom Field?
- Meta_query and numeric comparison [closed]
- Title and post URL based on custom fields?
- woocommerce product custom field
- Multiple relationships in a query
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- two custom fields question
- How to save multiple options from a dropdown in user profile
- How to display multiple images in custom field
- How to show a gloabl message on a user profile page (in back end)?
- Display the contents of a custom field of a page on their child
- Read / Watch / Listen times – meta
- Login WP – Connect single field to an external api
- adding extra wordpress user info from registration form
- Custom Meta Box (SELECT) Not Saving
- Turn raw url into clickable links
- meta fields for the whole wordpress site
- Advanced Custom Fields functionality without plugin
- Get post ids sorted by meta_key
- Advanced Custom Fields Plugin – Unable to get URL from post_object
- Plot location on Google map using full address specified in custom field
- Display custom field value as a hyperlink
- Unable to get specific value from post meta
- 3.8 Media Upload and Custom Meta Box
- Displaying Custom Field Array
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- Let’s Create Custom Field Template Documentation
- WordPress Settings API Repeatable fields
- WordPress creates new lines in postmeta table on post update
- How to add custom filed value after in wp post title
- Accessing Custom Fields on Pages
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- Display a different image for each page with editor
- WP_query multiple custom fields not working
- Help with this custom field conditional if no field is set display nothing
- if statement display content even though no data
- Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?
- Get custom post fields from multiple metaboxes
- Get author total post votes from post meta
- Only admin should be able to add a particular custom field
- How to display custom fields in hestia theme
- How to update only certain custom fields in a the cache of a page?
- Custom date column in user table not sorting correcting
- pass custom value from single.php to another file via get
- How to speed up post list slowed by update_meta_cache()?
- Custom Fields displaying in single line
- variable not passed correctly to database using custom field
- WordPress Blocks, setAttributes not saving
- How do i call up default post title in custom posts
- Custom Field URL + description
- How to save multiple custom user profile fields using repeater JQuery
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Why does this javascript search function in the WordPress Admin not work?
- 4 Unique Random Posts based on Custom Field Values
- Page template is missing fields or is invalid when I updating the template
- Admin – Search Events by a custom field
- create a custom field that let me include other posts
- Check if value exists before saving
- Get meta value when the page is a blog archive
- Populate a select box with data stored in the database?
- Change path to child of page when uploading image via custom field
- How can I hide my section title if there is no data in custom fields?
- Create download page from post option link
- Meta Box Data added to header redirect
- How to Pull Out Twitter Summary Data in other areas of my template?
- Custom fields with square brackets in the name
- Custom fields driven site. I want to make a visual editor driven page template. How?
- Including inline Custom Fields info with add_filter in functions.php
- how to have custom post template including custom write panels for the users to post
- Using CMB2 Plugin to create text_date metabox (datepicker) How do I save multiple dates? [closed]
- price calculation from custom field (woocommerce) [closed]
- Cannot save values to custom fields for variations on Woocommerce 2.4.6
- Associate an image with a post to show it in a slideshow
- Dynamic background image used in css after selector
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?