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

custom-field

Exclude URL’s from sanitize_html_classes

On input, esc_url_raw() is the correct function to use which replaces sanitize_url Example : $custom_field = esc_url_raw( get_post_meta( get_the_ID(), ‘_custom_url’, true ) );

Categories custom-field Tags autosave, custom-field, save-post

Sort custom post by custom field if none order by latest release

Sort custom post by custom field if none order by latest release

Categories wp-query Tags custom-field, wp-query

Update some (not all) post titles with custom field values before running the Loop

If you are querying all posts at once with ‘posts_per_page’=> -1 it would be easiest to get all posts as an array, update title if needed, and sort them after. The disadvantage of that approach is you would have to update your loop to use properties instead of functions i.e. instead of the_title(); you would … Read more

Categories custom-field Tags custom-field

How to add a “base” filter for all posts visible to visitors on the site?

How to add a “base” filter for all posts visible to visitors on the site?

Categories wp-query Tags custom-field, filters, user-access, wp-query

wp_set_object_term via js btn frontend

wp_set_object_term via js btn frontend

Categories functions Tags custom-field, functions, javascript, jquery

How to Print Title and Permalink of CPT Post behalf of Posts Meta Value with WP_Query

How to Print Title and Permalink of CPT Post behalf of Posts Meta Value with WP_Query

Categories custom-post-types Tags custom-field, custom-post-types

How do i create a custom post query when the meta value is an array?

How do i create a custom post query when the meta value is an array?

Categories wp-query Tags custom-field, meta-query, post-meta, query-posts, wp-query

WP Query from two Custom Post type fields as statement

WP Query from two Custom Post type fields as statement

Categories custom-post-types Tags custom-field, custom-post-types, query, wp-query

How to set up page fields with gutenberg instead of ACF

How to set up page fields with gutenberg instead of ACF

Categories custom-field Tags advanced-custom-fields, block-editor, custom-field, templates

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
Older posts
Newer posts
← Previous Page1 … Page128 Page129 Page130 … Page384 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