Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

post-meta

How to fill custom fields with brackets in their key with add_post_meta()?

August 6, 2022 by Magenaut

I’m trying to fill WP SEO Structured Data Schema fields with add_post_meta function and it doesn’t work properly. I checked one of the posts that’s added from WordPress admin panel and it was saved like this:
‍‍‍‍

Categories Q&A, Wordpress Tags custom-field, post-meta Leave a comment

if get_post_meta function returns empty – Do Not Display HTML

August 6, 2022 by Magenaut

I am working on a website with some custom PHP.

Categories Q&A, Wordpress Tags meta-value, post-meta Leave a comment

Frontend query and does not need to log in

August 6, 2022 by Magenaut

I would like to query a post meta called 3-serial on the frontend page. Once queried, start_date and end_date will appear. I do not know where to put the codes too. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. … Read more

Categories Q&A, Wordpress Tags post-meta Leave a comment

Get data from custom table and update relative post_meta based on meta_key

August 6, 2022 by Magenaut

long story short: I need to retrieve data from WordPress-created custom Table and add/update metadata to the related post (post_type=product). I can match the posts (products) and custom table fields by post metadata (_sku) which is the key of my query.

Categories Q&A, Wordpress Tags post-meta, wpdb Leave a comment

cannot get user_registered date from get_user_meta

August 6, 2022 by Magenaut

I am trying to display the user_registered date from get_user_meta but it always displays as empty. If I try another field I do get a value so not sure why I don’t see anything for the date. If I check the database there is definitely a date.

Categories Q&A, Wordpress Tags post-meta, user-meta, users Leave a comment

WP nonce field checkbox prints checked=’checked’ outside input field

August 6, 2022 by Magenaut

I’m currently creating a custom post type in wich I want to add some custom meta boxes. All the fields just go as expected excepting a checkbox field wich prints on the html checked=’checked’ after echoing the hidden field and I don’t know why. I’ve tried not echoing the value or the referer but still happens. This is my code:

Categories Q&A, Wordpress Tags metabox, plugin-development, post-meta Leave a comment

How to use multiple Meta Field from CPT as Post permalink

August 6, 2022 by Magenaut

i have created a custom post type using Jetengine called “cars” and meta field like this “model” “maker” “year” .. etc,
what i want is to use more than one meta field as post permalink and target only my CPT “cars” (this one im not sure about it), for now my code looks like this:

Categories Q&A, Wordpress Tags custom-post-types, meta-value, post-meta Leave a comment

WP API Response does not show my registered metadata

August 5, 2022 by Magenaut

I am trying to get metadata from a custom post type splash_location however it’s not showing up in my response. I have registered my metatag splash_location_title but it doesn’t show up in my JSON request.

Categories Q&A, Wordpress Tags custom-post-types, post-meta, rest-api Leave a comment

How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?

August 5, 2022 by Magenaut

On the Edit Screen in the WP Admin there is a meta box for WP’s built-in Category taxonomy. This meta box is built using post_categories_meta_box() (/wp-admin/includes/meta-boxes.php).

Categories Q&A, Wordpress Tags categories, metabox, post-meta, taxonomy, walker Leave a comment

Avoiding ACF get_field and returning to core WordPress function

August 5, 2022 by Magenaut

function slb_subscriber_column_data( $column, $post_id ) { // setup our return text $output = ''; switch( $column ) { case 'title': // get the custom name data $fname = get_field('slb_first_name', $post_id ); $lname = get_field('slb_last_name', $post_id ); $output .= $fname .' '. $lname; break; case 'email': // get the custom email data $email = get_field('slb_email', $post_id … Read more

Categories Q&A, Wordpress Tags core, custom-field, meta-query, post-meta Leave a comment
Older posts
Page1 Page2 … Page9 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress