Skip to content

Magenaut

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

post-meta

What is the index [0] for on post meta fields?

August 4, 2022August 3, 2022 by Magenaut

Trying to improve my PHP knowledge through test and try! I am confused on [0] arguments at following WordPress PHP code

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

How do I retrieve multi-dimensional arrays from the wp_postmeta table, & display on a website?

August 4, 2022August 3, 2022 by Magenaut

I would like to retrieve multi-dimensional arrays (that have been created with metaboxes), & display them on the front end of a website using shortcodes.

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

How to only display posts whose meta_value field is not empty?

August 4, 2022August 3, 2022 by Magenaut

Three people have already tried to solve this, and we’re coming up nil. I want to show only posts that have a value in the meta_key ‘featured_image’.

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

Query all posts where a meta key does not exist

August 4, 2022August 3, 2022 by Magenaut

I am trying to get a query to retrieve all the posts where a specific meta_key does not exist and then create it.

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

How to extract data from a post meta serialized array?

August 4, 2022August 3, 2022 by Magenaut

I found an XML to WP decoder script that stores the data as an array in a custom meta field. What is the best way to extract the information?

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

How to make search include data from wp_postmeta?

August 4, 2022August 3, 2022 by Magenaut

I have a site using Advanced Custom Fields to create and store various bits of relevant info. These need to be included in the main general search, which by default only searches the title and main content.

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

Post meta vs separate database tables

August 4, 2022August 3, 2022 by Magenaut

When developing plugins that requires data storage, what’s the pros and cons of using one method or another ?

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

How do I query for posts by partial meta key?

August 4, 2022August 3, 2022 by Magenaut

I have a function that stores the “like” status for a post as post meta. I want to associate that “like” with the user that liked it, so I setup a custom field called “like_status_{user_id}” (where {user_id} is the id of the currently logged in user) which I store as a 0 or 1. So for a post with several “likes” there would be several meta values in the db that are setup like this:

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

Why time functions show invalid time zone when using ‘c’ time format?

August 4, 2022August 3, 2022 by Magenaut

These are the functions I use in my theme to display the “entry-meta” which includes published and last modified dates (among others) of an article:

Categories Q&A, Wordpress Tags date-time, post-meta, timestamp, timezones Leave a comment

How to set author for post AND post attachments

August 4, 2022August 3, 2022 by Magenaut

I have multiple author accounts on one of my WordPress installs. Often I will create a post, and set the author to be a different account. However, when I upload images into that post, their attachment page lists the author as my account. How can I set the author for posts, and have it carry over to the media associated with that post?

Categories Q&A, Wordpress Tags attachments, author, post-meta Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … 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