Skip to content

Magenaut

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

custom-field

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

Custom query with orderby meta_value of custom field

August 4, 2022August 3, 2022 by Magenaut

Aa you know, as of WP3.0 there are options for custom advanced queries, which is great.
As of this, some query parameters of custom fields like meta_key, meta_value were deprecated for the new meta_query parameter (see here)

Categories Q&A, Wordpress Tags custom-field, query-posts Leave a comment

Prevent post from being published if custom fields not filled

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen).

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

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

Many to Many Relationship between Two Custom Post Types

August 4, 2022August 3, 2022 by Magenaut

How do I create a many-to-many relationship between two custom post types?

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

Add validation and error handling when saving custom fields?

August 4, 2022August 3, 2022 by Magenaut

I have a function that defines a custom field on a post type. Say the field is “subhead”.

Categories Q&A, Wordpress Tags custom-field, customization, errors, save-post Leave a comment

Custom field/meta populated by dropdown of existing posts?

August 4, 2022August 3, 2022 by Magenaut

(My first WP question ever asked! Be gentle!)

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

Adding Custom Field to Taxonomy Input :Panel

August 4, 2022August 3, 2022 by Magenaut

I am looking to achieve something which I figured would be fairly simple to accomplish but it seems there are no real examples available to achieve my needs.

Categories Q&A, Wordpress Tags admin, custom-field, custom-taxonomy Leave a comment

Using meta query (‘meta_query’) with a search query (‘s’)

August 4, 2022August 3, 2022 by Magenaut

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field.

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

How to add a checkbox element to attachments editor with example

August 4, 2022August 3, 2022 by Magenaut

The code below adds a custom input field to the attachments editor. How can I convert the text input to a checkbox and get/set the value of the checkbox on load and save?

Categories Q&A, Wordpress Tags custom-field, theme-development Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page13 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