Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

post-meta

Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta

Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta

Categories PHP Tags categories, custom-field, php, post-meta

After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel

Fixed! I changed the a field type and changed the query conditions.

Categories custom-post-types Tags custom-post-types, post-meta, wp-admin, wp-query

How to add custom metakey to shop_order page’s searching function?

How to add custom metakey to shop_order page’s searching function?

Categories functions Tags e-commerce, functions, post-meta, woocommerce-offtopic, wp-admin

Help to Create a Simple Plugin to make a post

Help to Create a Simple Plugin to make a post

Categories plugins Tags plugin-development, plugins, post-meta, posts, security

How to save EXIF metadata in WordPress database?

I’ve got the help from a guru on other forum. The following code add fields ‘City’ and ‘Location name’ to attachment edit page. Their values gets from IPTC metadata (Tag: 90, Key: Iptc.Application2.City / Tag: 27, Key: Iptc.Application2.LocationName) and automatically save it in db on image upload (Custom fields: ‘city‘ and ‘locationname‘). The values can … Read more

Categories Database Tags database, post-meta

Post meta not working

Post meta not working

Categories posts Tags categories, custom-field, post-meta, posts

I want to Add Feedburner Right After Meta Details

I want to Add Feedburner Right After Meta Details

Categories post-meta Tags post-meta

How do I list taxonomies that have upcoming events in WP? Is there a way to do this without having to query posts first?

How do I list taxonomies that have upcoming events in WP? Is there a way to do this without having to query posts first?

Categories post-meta Tags post-meta, taxonomy

Negative meta_query if storing multiple post_meta values with shared meta_key

Thats because you created the meta_query property incorrectly, it should be a multi diminsional array. $pet_owners = new WP_Query([ ‘post_type’ => ‘pet_owner’, ‘posts_per_page’ => -1, ‘meta_query’ => [ [ ‘key’ => ‘pet’, ‘value’ => ‘cat’, ‘compare’ => ‘!=’ ] ] ]); For more information about meta_query see Custom Field (post meta) Parameters

Categories post-meta Tags meta-query, meta-value, post-meta

How to create review point system for CPTs (many-to-many relationship)

As you’re in the WP ecosystem, use it. There are already lots of plugins doing “review system” https://wordpress.org/plugins/search/reviews/ Find one which match the best your need and then improve it thanks to the filters and actions you can find in the plugin chosen. –Edit– If you do not want to use a plugin. I think … Read more

Categories custom-post-types Tags custom-post-types, post-meta
Older posts
Newer posts
← Previous Page1 … Page69 Page70 Page71 … Page204 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress