Skip to content

Magenaut

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

custom-field

Display thumbnail from custom field

August 3, 2022August 2, 2022 by Magenaut

I have a custom field called picture. On the media settings page I’ve set thumbnail size to 100×100. If upload an image called gecko.jpg, WordPress automatically resizes it and generates gecko-100x100.jpg. I want to use both the thumbnail size and original size, is it possible?

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

Validating Custom Meta Box Values & Required Fields

August 3, 2022August 2, 2022 by Magenaut

Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes.

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

Orderby meta_value only returns posts that have existing meta_key

August 3, 2022August 2, 2022 by Magenaut

I have the following wp_query:

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

How to get custom post meta using REST API

August 3, 2022August 2, 2022 by Magenaut

I am trying to create a REST APIs for my wordpress website which is used for facility listing using wordpress job manager plugin.

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

How to sort CPT by custom meta value (date), and return posts month by month

August 3, 2022August 2, 2022 by Magenaut

For future reference:
I am using the great Meta Box Plugin to help expedite meta box creation for my custom post types.

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

How to add/save Custom Field in user settings/profile “Checkbox list”

August 3, 2022August 2, 2022 by Magenaut

i have been working on a custom system for my site where users can have a seperate account, setting and profile page to make my site a bit more interactive and community type. with some other additional stuff.
I am new to coding, i have managed to make the profile pages etc.

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

what is the correct way to compare dates in a WP query_posts meta_query

August 3, 2022August 2, 2022 by Magenaut

I have a query_posts call in a WP template. Through the use of the More Fields Plugin I can give the site admin the ability to create an event (custom post type) and then enter a date which is formatted: YYYY/mm/dd.

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

Order posts by custom field and if custom field is empty return remaining posts

August 3, 2022August 2, 2022 by Magenaut

I have an archive page ordered by a numeric value in a custom field. This returns the ordered posts correctly, but does not display posts that don’t have a custom field.

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

Show User Their Password

August 3, 2022August 2, 2022 by Magenaut

I’ve got a few automated scripts that run to notify users of certain updates to the application, etc… and for one in particular, I need to be able to display the users user_login and their password.

Categories Q&A, Wordpress Tags custom-field, password, user-meta, users Leave a comment

Return all custom meta data for one custom post type

August 3, 2022August 2, 2022 by Magenaut

I’ve set up a custom post type which has three custom meta fields: name, latitude, longitude. Each post already shows the name on an integrated map based on it’s latitude and longitude.

Categories Q&A, Wordpress Tags custom-field, custom-post-types, query-posts Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … 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