Skip to content

Magenaut

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

custom-field

How to Add Custom Fields to a Custom Post Type?

August 4, 2022August 3, 2022 by Magenaut

Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to add a Custom Field to my Custom Post Type.

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

how to filter by last name for custom post

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type (speaker) and I would like to load the list of speakers sorted by last name. I can’t seem to figure it out. I tried the code from this post: https://stackoverflow.com/questions/16416217/wordpress-orderby-last-word-in-title

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

Custom Post Type Data in Sidebar widgets?

August 4, 2022August 3, 2022 by Magenaut

(note: this question was originally about Custom Fields, but @MikeSchinkel had a better solution involving Custom Post Types)

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

Meta query with string starting like pattern

August 4, 2022August 3, 2022 by Magenaut

I have a custom WP_Query with the following meta_query:

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

Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?

August 4, 2022August 3, 2022 by Magenaut

I need to create a custom post meta box(es) for my custom post type “Slideshow” (this post type is already created). Each metabox will hold the content in each slide slide and save it to corresponding custom fields. Each metabox should contain the following fields:

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

Order get_terms() By Custom Field

August 4, 2022August 3, 2022 by Magenaut

I want to order my categories like I order my pages. I’ve added an extra field called Order to my taxonomy, but how do I order my terms by this value?

Categories Q&A, Wordpress Tags categories, custom-field, custom-taxonomy, order, terms Leave a comment

Is there a way to set default custom fields when creating a post?

August 4, 2022August 3, 2022 by Magenaut

When I’m creating a new post, just after clicking “Add New”, when the post editor shows, instead of having to use the dropdown and choose a custom field to use, I’d like to have some default custom field inputs already openend.

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

I am trying to create a simple frontend form for posting

August 4, 2022August 3, 2022 by Magenaut

i am trying to learn and create some deeper things with WordPress. My goal is to create a code/script/plugin that will allow me to post from the frontend.

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

Assign/update the custom field value for all posts

August 4, 2022August 3, 2022 by Magenaut

I have over 1000 posts. Each post has a custom field XYZ. I’m looking for a function that I can run once that will assign a value of 1 to each of the posts’ custom field XYZ. I’ve had a look at this but i’m not getting how to put it into a one-time-run function?

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

Rewrite custom post type url’s adding meta box values

August 4, 2022August 3, 2022 by Magenaut

I’ve got these custom post types (CPT) and meta boxes:

Categories Q&A, Wordpress Tags custom-field, custom-post-type-archives, custom-post-types, rewrite-rules, url-rewriting Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … 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