All Questions
26 questions
0
votes
0
answers
64
views
Meta box not displaying on the plugin page
I am working on a plugin and I am creating a meta box on my page using the below code but it's not displaying anything.
Any idea where is the issue with my code?
class bt_dashboard
{
function ...
0
votes
0
answers
170
views
Metabox collapsed by default
I need to make a metabox of a WordPress Plugin called "post expirator" collapsed by default.
Right now it is open.
actually when i open a page :
My need :
That is the part of the code adding ...
1
vote
1
answer
287
views
custom meta box for page default template
I'm having issues getting some custom meta boxes to display on the page default template. I want these meta boxes to only display on the default template and disappear when the user chooses a ...
0
votes
1
answer
183
views
Edit Parent page drop menu when creating a page
Please can someone tell me how to remove all items from the 'Parent' drop down when creating a page apart from a few items? (Loop through and remove all that are the ones I want).
0
votes
1
answer
580
views
Add_Meta_box to custom page (formidable edit post)
I'm working on a minor "project" on my wordpress site, and im trying to add a custom metabox to the formidable - edit post(page?) screen. But i seem to be unable to figure out how to do it.
...
0
votes
1
answer
265
views
Remove taxonomy widget from "PAGE" post
For internal purpose I created taxonomy named "CLIENT" for the "PAGES" post .
It's generated a widget in pages (picture below).
I use ACF to manages my client categories (I create a specific field) ...
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 :
...
1
vote
0
answers
83
views
Show Custom Post Type meta boxes only on Page Edit
I've went through the laborious process of creating the CPT. I see it on the sidebar of my WP install, I can add new, save data, and on frontend I can output the data. Is it possible with WP to move ...
0
votes
1
answer
1k
views
Undefined index: post in NOTICE while adding meta box
I am trying to add meta box on particular page with id 62. But i get the notice Undefined index: post in in line 5 i.e $post_id= $_GET['post'] ? $_GET['post'] : $_POST['post_ID'];
Following is the ...
0
votes
2
answers
165
views
Custom Upload Adds Ghost File
I've tried this on a fresh install on the twentyfifteen theme. I'm adding a metabox to pages which allows uploads - Whenever I upload a file on a new Page it uploads the file but also adds another ...
0
votes
1
answer
172
views
Specific Page that convert Hyperlink to anchor in nav menu
I extended my Walker_Nav_Menu that converting hyperlink to anchor as I'm making one page website. Here is the code:
class description_walker extends Walker_Nav_Menu{
function start_el(&$output, ...
2
votes
3
answers
8k
views
Wordpress 4 and wp_editor() Not Showing Visual/Text tabs
I use wordpress a lot, i develop for it a lot too!
I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using ...
1
vote
0
answers
48
views
Page template no longer exists - metaboxes won't save
Ok, this is a weird one.
I first experienced this on an older theme that I developed - I assumed I had some buggy code in there somewhere, but couldn't figure it out even with the help of another ...
0
votes
1
answer
208
views
Custom SINGLE page with custom metaboxes and custom template
I run in this situation where I must create complex contacts page with custom template, custom meta boxes.
I know how to make custom post type, add meta boxes and display all information in custom ...
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.
1
vote
2
answers
11k
views
Where is the key _wp_page_template passed?
When adding custom post meta boxes, I understand that whatever name attribute input you put would be passed through the form into the server.
Hence, If I have
<input type="text" name="...
0
votes
0
answers
26
views
Page vs Custom Post Type - which to use [duplicate]
I am creating a few pages (Company, Offices, Contact) and would like to have custom meta boxes for each of those pages. I want the meta boxes to be different for each page, and I don't know if that is ...
1
vote
2
answers
2k
views
Create custom PAGE with register_post_type
The following code in functions.php outputs a post when I publish, not a Page:
// custom post_type for agenda
add_action( 'init', 'create_my_post_types' );
function create_my_post_types() {
...
5
votes
4
answers
33k
views
How to add add_meta_box to specific Page Template?
I want to add add_meta_box to specific page type like Page Template, Like Product Template.
I am using this article http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/ ...
2
votes
1
answer
2k
views
Get Order of Meta Box in a Page/Post
I'm using the Posts 2 Posts plugin specifically, but I think this applies to any meta box. I have three Posts 2 Posts metaboxes on the side: "Related Case Studies", "Related White Papers" and "...
1
vote
1
answer
3k
views
How to create a metabox that will list all my pages in a dropdown selector?
I would like to have a metabox for the user to be able to select from a dropdown list one page from the website. I need to save the user choice, so I can use it later. So, my question is how can I ...
4
votes
2
answers
2k
views
How to add or remove metabox each page separately?
How to add a meta box for a particular page, say: for only About Us page.
How shall i do?
The current code adds the metaboxes for all pages:
function myplugin_add_custom_box() {
add_meta_box(
...
4
votes
2
answers
22k
views
Upload multiple images in a custom metabox
I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
0
votes
1
answer
449
views
wordpress alchemy put custom metabox on certain page only
I want to put the custom metabox I have only on the home page but I am not sure how to go about doing this. I am using the following to add the custom meta box to all the pages. How would I select ...
1
vote
3
answers
3k
views
How to add meta boxes to Pages
I'm almost complete whit my wp theme an I'm now translating it with the WPML plugin. This is working out great (even all my custom post types and meta boxes :) ), but of course there have to be a ...
0
votes
1
answer
676
views
Add a menu metabox to post edit page
I have a basic understanding of how to create meta boxes, and I have an understanding of how and where to put wordpress menus on the front end. I am a wordpress theme developer but NOT a wordpress ...