Refers to a box-like reusable user-interface component common in the WordPress backend.
0
votes
2answers
497 views
Order custom posts by a date metabox
I have a custom metabox, where I store the date in plain text like this: dd/mm/yyand now I need to order the posts by that date.The custom field is called event_informations_date
<?php
$args = ...
0
votes
1answer
316 views
Having trouble with custom post type / meta box
I've been working on a custom post type meta-box implementation that allows me to change the post_date to match the value in my "date" meta-box.
The function works perfectly except when I try to add ...
0
votes
1answer
454 views
prevent post submission
I'm using a meta-box for custom post type. I have three problems:
WP seems to run the function that I attached to the "save_post" action, every time a new post is opened for editing or reloaded. Is ...
0
votes
1answer
709 views
Using 'strtotime' function to convert a custom-meta-box to a date-stamp
I am building a "podcast" post type in a wordpress build using custom-post-types, meta-boxes & taxonomies. There may be a simpler way to do this.. I'm still learning and this is my first go at ...
0
votes
1answer
227 views
Custom Meta Box with variable number of fields
Here is what I wanna do and I basically would just like some ideas from someone more experienced that would help to get started in the right direction.
I have a custom post type (Exams) that has is ...
0
votes
1answer
415 views
Create a page Meta Box listing all blog users
I have a custom post type where each post can only be seen on the frontend by one specific user.
I have figured out how to make an archive template where only posts with the meta _allowed_user = ...
0
votes
1answer
128 views
Why is save_post triggered even when I havent saved the post
I created a meta box I notice that save_post seems to be triggered when I land on the page, thus giving me errors like Undefined index: xxx in /data/www/ae/wp-content/themes/xx/functions.php on line ...
0
votes
1answer
2k views
How to add a select menu to this metabox code?
I'm using a metabox script that works great for having absolute control over the design and placement of the metabox fields. There is one problem: I can't remember where I found the script and need to ...
0
votes
2answers
754 views
How to add meta boxes to the 'Add new post' screen?
I want the user to fill in a form (when they create a new blog post). The results of the form should be embedded within the new blog post. So I am trying to think of the best way of coding this. Meta ...
0
votes
2answers
441 views
Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box
I've got a custom meta box for a custom post type which will be the only metabox I plan to show in the main column (except the native title box). I want to move the native Expert box/field inside my ...