Skip to content

Magenaut

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

post-meta

How to break meta values into different items and avoid duplicates?

August 5, 2022August 4, 2022 by Magenaut

I’m trying to build a filter for a custom post type page. The custom post type has a metabox that allows inputting of different authors.

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

How to update custom fields using the wp_insert_post() function?

August 5, 2022August 4, 2022 by Magenaut

The WordPress function is used for submitting data programatically. Standard fields to submit to incude the content, excerpt, title, date and many more.

Categories Q&A, Wordpress Tags custom-field, php, post-meta, posts, wp-insert-post Leave a comment

Custom post meta field effect on the performance on the post

August 5, 2022August 4, 2022 by Magenaut

I have the posts which have many custom defined meta fields.
On posts I am calling them on requirement using get_post_meta. Means for 10 meta fields I am using it 10 times.

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

How to hook update_post_meta and delete_post_meta?

August 5, 2022August 4, 2022 by Magenaut

I’m still struggling to get my head around this whole hooking into things, so I’m really stuck on trying to do the following task:

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

Can the Next/Prev Post links be ordered by menu order or by a meta key?

August 4, 2022August 3, 2022 by Magenaut

I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary.

Categories Q&A, Wordpress Tags custom-post-types, next-post-link, post-meta, previous-post-link, sort Leave a comment

Add “upload media” button in meta box field

August 4, 2022August 3, 2022 by Magenaut

I have a custom post which has a meta tag that needs to be using a file upload (for video files). I am wondering, what is the correct way of adding an “Upload” button that points to the WordPress media uploader and sets the url of the selected uploaded file to the text field that caused that associates the upload button.

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

How do I retrieve the slug of the current page?

August 4, 2022August 3, 2022 by Magenaut

I am trying to retrieve the slug of the current WordPress page outside the loop. The title of the page returns with wp_title (), but how can I get the slug?

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

Custom query with category exclusion and post-meta “whitelist”

August 4, 2022August 3, 2022 by Magenaut

I have two widgets, one shows News while the other shows everything except News (We’ll call the second one Blog). The blog portion is currently working correctly.

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

Passing error/warning messages from a meta box to “admin_notices”

August 4, 2022August 3, 2022 by Magenaut

I have a simple meta box that updates the post custom fields (using update_post_meta()).

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

Explanation of update_post_(meta/term)_cache

August 4, 2022August 3, 2022 by Magenaut

I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending on what you’re querying ):

Categories Q&A, Wordpress Tags cache, core, customization, post-meta, terms Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … 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