All Questions
69 questions
1
vote
1
answer
62
views
Changing custom type name hides the posts [closed]
I created a custom post type. Plugin used is Custom Post Types & Custom Taxonomies plugin which does the job very good.
And added some posts to it.
But when I modify the name of the newly created ...
0
votes
1
answer
141
views
Show metabox value last post excerpt, title and link
I'm facing a problem I can't solve.
I'd like to get the excerpt, title and link of the last post containing a particular meta-box button status.
For example: I would like to retrieve the last post ...
0
votes
1
answer
135
views
Adding an option to post editor to show a site disclaimer or message
I was wondering how I would go about adding an option to add a site disclaimer or message for a published post in Word Press.
Something like this (Please See Below)
Which by checking the box will ...
1
vote
1
answer
483
views
Adding custom fields to bbpress reply form
Referring to post "adding-custom-fields-bbpress-topic-form" with link https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/,
I want to add custom fields to bbpress reply form ...
1
vote
1
answer
621
views
Adding dropdown select meta box to custom post type - seems restAPI is interfering
I have a custom post type, call it topic. It is from BBPress, but this isn't a BBPress question.
I also have a post type lessontopic.
I added a meta box to BBPress so that I can choose an associated ...
0
votes
0
answers
30
views
$_POST from a Meta Box
From my reading, the editor page of a post is wrapped in a form tag meaning a standard HTML form won't work within a Meta Box.
What I'm trying to achieve is a meta box with two fields e.g. Name & ...
0
votes
3
answers
2k
views
Updating post meta for checkbox
<div class="vp-field vp-checkbox vp-checked-field vp-meta-single" data-vp-type="vp-checkbox" id="_custom_meta[category][]">
<div class="label">
<label>Categories</label>
&...
0
votes
1
answer
96
views
How to I retrieve the ID from the Posts page?
I am creating some custom meta boxes in my theme to allow user to insert their own custom meta description and keywords overrides (no I will not use a plugin for it). I am having an issue with the ...
1
vote
2
answers
314
views
Automatic value for custom fields for posts
I have created custom fields for posts by using the add_meta_box action. I want to create my own WP Query based on my custom field, to make sure I will only load a post collection with the correct ...
0
votes
1
answer
31
views
Wordpress CPT Url metabox collection
How can I set for my Custom Post Type 'company' different url's if this company have multiple locations.
For example:
CPT: "company" with slug http://example.com/company
CPT Company Post:"Company ABC"...
1
vote
1
answer
371
views
Meta value does not save for scheduled posts
I created a metabox into my posts, it's a checkbox that I checked.
Here's the code for saving the data :
add_action('save_post','save_metaboxes');
function save_metaboxes($post_ID){
if (...
0
votes
1
answer
140
views
How to save meta checkbox Wordpress
I want to save a meta with a checkbox for all my posts, here's my code :
add_action('save_post','save_metaboxes');
function save_metaboxes($post_ID){
if(isset($_POST['is_viewpay'])) {
$old_meta =...
0
votes
1
answer
30
views
I need show posts by customer (Shortcode)
I have customers in one new custom post type. And in my posts is created one metabox with all customers (select option). Only need compare, what option select user and show all post by this customer ...
1
vote
1
answer
47
views
Dashboard :10 Last draft page and 10 last pending review page (metabox)
I want to display on the dashboard for some users role (Admin, editor and auther) . a box with 10 last draft page and 10 last edit page.
For the 10 last edited page I use the custom below :
...
0
votes
1
answer
133
views
My own metabox checkbox plugin only saves the last value I've checked
I'm building my own metabox with checkboxes. I want to save the values of the checkboxes I've cheked as categories (IDs).
I have build an array to append the values of the checkboxes, but it only ...
1
vote
2
answers
628
views
How can I tell if a post has been published at least once?
I am working on a plugin that has a piece of meta data attached to each post. The fields are editable in a meta box on the post. This is all working fine.
I would like to prevent anyone from ...
2
votes
1
answer
2k
views
Change Post Title Edit Box
When editing a post, the title field displays the placeholder "Enter title here" (it's actually a label element that's made to look like a placeholder attribute, but whatever). I have a custom post ...
0
votes
0
answers
85
views
Add meta box for Featured Image caption in wp-admin/post-new.php
I want to add a meta box in my wp-admin/post-new.php page. Someone please help me.
I've recently searched for solutions but can't find the answer in any tutorials I've read. I try to modify html ...
0
votes
2
answers
666
views
Remove All in One Seo from Posts for Contributors
I am using latest version of All In One Seo Package.
How can I remove metaboxes from posts for User Role: "Contributors"?
1
vote
1
answer
749
views
How to rename "Publish" metabox title in post screen
I've looked everywhere trying to find how to rename the "Publish" metabox title in the WordPress backend post screen. There's help for every other metabox for changing titles and there's help for ...
3
votes
1
answer
443
views
What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
I want to insert a custom button between "Publish" button and "Move To Trash" link. What can I use to make this?
Here is a screenshot to make this clearer:
I know I can use jQuery, but I want to do ...
0
votes
1
answer
43
views
Meta boxes not saving
I have a custom post with two custom meta boxes that I add using this tutorial:http://wptheming.com/2010/08/custom-metabox-for-post-type/
When I update the post, it disappears. My code:
function ...
0
votes
1
answer
93
views
How to make post page unique and show it on home page?
I don't know if the title is correct but I'll try to explain my question below.
I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...
1
vote
1
answer
50
views
Understanding and using metaboxes in posts
I am developing my first theme that is not dependent on a parent theme but I am running into some back-end problems. I'm trying to add a metabox to all posts that are being written. This question is ...
-2
votes
1
answer
289
views
Canot save post if any meta box was empty
I need to dont save new post from custom post type if any meta box empty.
So we must check the meta if empty, we mus show me
" You must fill all meta box value before save post"
else if all meta ...
0
votes
1
answer
2k
views
Edit post meta direct from post.php?
Does anyone know of an easy way to be able to edit ALL of a single post's meta at once ie on the post.php &action=edit page?
As some of the meta has been put in there with the update_post_meta() ...
0
votes
1
answer
785
views
How can add metabox for post of specific category before save post and after save post [duplicate]
I want to add Metabox for the posts of category=5 and i am using the following code but unable to do so . So please help me out->
add_action('admin_init','my_meta_init');
function my_meta_init()
{
...
0
votes
1
answer
28
views
Some comment box wordpress in 1 post [closed]
Can I add more sections to comment on the same post? For example, I have an Entry and it has 4 tabs, In every tab you need a comments section, Is this possible? Thanks
0
votes
1
answer
31
views
How to Arrange Support => Thumbnail
Good Afternoon,
I've created a CPT that mainly uses Featured Images, I would like to know how to rearrange this box to appear in the center where 'content editor' would go instead of the right (...
0
votes
1
answer
2k
views
Adding JS functionality to the Publish button in wp-admin/post.php
I've created a plugin with a new metabox in my post.php. It's working fine on it's own, but the problem is getting it to save it's values if the users choose to press the "Publish/Update/Save" in ...
4
votes
1
answer
6k
views
How to add metabox for post of specific category
I want to add Metabox for the posts of category=18 and i am using the following code but unable to do so . So please help me out->
add_action('admin_init','my_meta_init');
function my_meta_init()
{
...
2
votes
1
answer
4k
views
Using radio button meta data from a custom meta box
Very new to attempting PHP and am hacking together my first plugin using tutorials..
I have a custom meta box with a Yes/No radio button on all WordPress pages (in the editor).
EDIT- I removed the ...
0
votes
1
answer
47
views
Get post related to particular meta box? [closed]
I have created few metaboxes and i would like to show the post related to that particular metabox value.
Just like we get the post related to tags or categories.
0
votes
1
answer
585
views
Display a post count from a custom metabox selection
I was wondering if this is possible.
I have a custom post type call projects that displays a metabox with drop down menu. In that drop down menu I have a few choices listed, draft, open, pending, ...
0
votes
1
answer
2k
views
Hide custom metabox value from custom fields
Before I ask the question, I tried to added _ to the custom field, but it's not working, at least with my code.
I just want to hide the value of my meta box from appearing in the custom fields. When ...
0
votes
1
answer
2k
views
Adding a meta box to determine the sidebar [closed]
I was trying to customize my WordPress, and I have added some custom meta boxes (it adds custom field) to add values in it, but I don't know how to do this one...
I want to a Meta Box, which will be ...
4
votes
1
answer
26k
views
Add metabox with media uploader in a custom post type [duplicate]
I need to create a "media uploader metabox" and add it to my custom post type.
I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only ...
5
votes
2
answers
3k
views
WP_List_Table Inside Metabox Not Working on Submit
I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called service which is registered to a custom post type called office. The table columns contain input ...
-1
votes
1
answer
341
views
Create A Metabox For A Custom Field
I add videos to my WordPress posts' video format by using custom fields. I was wondering if there is any way to create a meta box in post editor (like excerpt or something) for that specific custom ...
4
votes
4
answers
6k
views
How can I add a column/s to wp_posts table?
I am trying to sync WP with another service that offers an API that allows me to hook up their table's Update, Create, Delete to my sites.
So when they create, update, or delete a row on their server,...
0
votes
2
answers
65
views
Is there a way to create a meta box that can be added multiple times to a post dynamically?
This shouldn't be that difficult (I wouldn't think) ... I just want to have a section of my theme (directors) that has the name of the director / their bio in the title and post respectively (done).
...
0
votes
1
answer
726
views
Display metabox with date
I'm trying to add metabox with date in WordPress. I used code from this page
It works well, but I have a problem displaying the metabox values on page.
My loop:
<?php query_posts(array('...
5
votes
2
answers
4k
views
How to add a new tab to page editor
Anyone knows how to achieve this?
It has something to do with meta boxes, but I just can't figure out the proper syntax.
0
votes
1
answer
535
views
Simple Custom Metabox Not Saving
I'm not quite sure why but I've been playing around with all kinds of different solutions but none seem to work. I've traded update_post_meta with add_post_meta and even broke it up into 3 ...
1
vote
1
answer
611
views
Simultaneous admin updates causes custom fields to not update
Okay, I have another doozie of a problem and although I'm still in the middle of trying to figure out exactly what's going on and what kind of help I might need, I thought I'd throw something up here ...
6
votes
2
answers
2k
views
Can I force a metabox to be in one column?
Suppose I created a custom metabox for the add/edit post page that uses a wide width (not suitable for being in the sidebar), is there a way of keeping it in the middle column only and sortable while ...
0
votes
0
answers
102
views
How to separate metabox data in front/backend
I just created a kind of long metabox using a tutorial at wptuts but I am lost in two things:
The output of the metabox displays all data grouped (ex. in grouped checkboxes they are all in a whole ...
0
votes
1
answer
137
views
How can I create a menu items from meta box based on users input
I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
0
votes
1
answer
2k
views
Get post meta retrieving wrong value
I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
2
votes
1
answer
247
views
Save list from a custom meta box?
I have a simple list (ul>li) which is manipulated with jQuery UI in a custom meta box.
How would I go about saving the contents of the list during post save?
I already have the save function ...