All Questions
3,622 questions
1
vote
2
answers
4k
views
Looks like image resize is not working well
Im searching for some clue about this behavior? I think it is a PHP memory_limit or WP define('WP_MEMORY_LIMIT', 'X') issue?
Sometimes images are resized and sometimes not, in other scenarios the ...
0
votes
1
answer
196
views
Whats wrong with my wp gallery?
i was making a gallery on my clients site using [gallery] sortcode. The gallery appears but when clicked it goes to clients other website which i have no idea why?
here is the link http://www.build12....
0
votes
1
answer
667
views
Custom field values get deleted
I created a custom post type:products which also has custom fields: price & shipping. Occasionally, if I leave the edit product window open or refresh it, I lose the values inside price and ...
1
vote
1
answer
237
views
Multiple Meta Boxes in separate files
So here's the problem, I want to have a few different meta boxes on my sites, but I'd like to be able to store each of them in separate files and included them into functions, so I can just copy ...
1
vote
1
answer
1k
views
Wordpress Fancybox Resize Large Image
I have a wordpress users that aren't very good at resizing images so when they upload an image to wordpress it's still big > 3000px.
They can import into a post and a thumbnail is generated. When ...
1
vote
3
answers
2k
views
How to remove some media upload icons from post editor?
I would like to remove some of the media upload buttons just above TinyMCE in the Add post screen, how can I do that? Thanks.
0
votes
2
answers
169
views
ShortCut on meta boxes
There any way to run a shortcut that is in a meta box?
I'm trying to execute the shortcut but does nothing, is that if the code comes from the wordpress editor does not have any problem
0
votes
1
answer
497
views
Creating a podcast directory site - how to allow user to upload "large" files?
I wish to create a podcast directory site. For which, I'd like the users of my site to be able to upload audio files which are "large" (e.g: more then 2 or 8 MB), and to make that upload "easily" go ...
0
votes
1
answer
500
views
Allow users to upload flash videos?
I would like to allow users to upload videos to their profiles. I'm using the couponpress theme for wordpress, which is a coupon listing theme. It lets users upload images for their coupons or ...
-2
votes
1
answer
463
views
Can't manage to display an uploaded picture (uploaded from a custom button) in the front end
I followed this tutorial in order too add a custom upload button in the Wordpress admin.
It displays the picture you just uploaded right after saving:
The problem is that I can't manage to display ...
0
votes
1
answer
5k
views
How to add an upload image button (just like the one in the Custom Header) in the Theme Options I just created?
I used the following code in order to add a Theme Options panel in my Wordpress admin:
<?php
$themename = "Nettuts";
$shortname = "nt";
$categories = get_categories('hide_empty=0&orderby=...
51
votes
14
answers
81k
views
meta_query with meta values as serialize arrays
I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in ...
3
votes
1
answer
5k
views
Best way to arrange custom post types by Attributes -> Order metabox value?
I have my front page setup to display a custom post type via:
add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
if ( is_home() && false == $query->...
3
votes
2
answers
1k
views
Why can't I hook into save_posts after admin_init?
I'm trying to hook into the "save_post" action from an AJAX callback in my plugin, but it doesn't seem to work. In fact, hooking into "save_posts" only seems to work from a few key action execution ...
0
votes
3
answers
907
views
Multiple image uploader under editor?
I need a plugin for custom post type. I need something like this:
Can anyone suggest a plugin which has this feature, especially image upload and "Add another" button option.
0
votes
1
answer
3k
views
add 'file upload' field to user details
In the backend when a user goes to their detail page they can edit a few text fields. I want to add a custom field that allows the user to upload a file. I found something similar but its only to add ...
4
votes
2
answers
5k
views
Creating a metabox to upload multiple images, Ignoring The Featured Image
My question is basically identical to this other question here, however my question is still slightly different. I basically have a custom post type called "Packages" each package can have a slideshow ...
0
votes
1
answer
605
views
Wordpress 3.1.2 Bug: add_theme_support() and video post format registering twice
Ive been experiencing a problem with the new WordPress 3.1.2 update. When i use add_theme_support(); and register an array of post formats, it registers all of them fine, but when it comes to the ...
1
vote
2
answers
5k
views
Bulk Image Uploader to create new post from each image [closed]
Is there any plugin which creates a new post from each image I upload/select with it?
I want to create many posts with one image per post.
Currently I select, upload all images. Then create new post, ...
7
votes
2
answers
6k
views
Can upload doc and pdf but not ppt - not permitted for security reasons
"Insert search engine here" was pretty useless for this one - I've had a look through wp-includes/functions.php, wp-admin/includes/file.php etc. but not found a reason for the behaviour I'm getting.
...
8
votes
3
answers
7k
views
Sample code for validating custom metabox?
I've found very little on this site or in Google searches for examples of validating metabox custom fields.
If anyone wants to give examples, here are some cases that would be useful
1) Date entered ...
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 ...
1
vote
1
answer
82
views
Where did the Add New Custom Field go?
In the latest version of WP it's gone. Why?
5
votes
1
answer
2k
views
Display content from custom meta boxes in revisions
When I see a "revision" for a given post type, I only see the title, the content and the excerpt. How can I see the content of a custom meta box (or any other field, for that matter)?
0
votes
2
answers
839
views
How to recover the post ID earlier in the WP admin hook action "firing" sequence?
I am creating a WP plugin based around Custom Post Types (CPT), where you can dynamically specify a CPT, complete with any number of associated dynamic Meta Boxes and form elements such as radio ...
3
votes
1
answer
4k
views
upload image in a meta box
im trying to implement uploading via a meta box without using the media manager, but i want it to add as a post attachment.
im currently doing it just uploading and saving to the server.
<?php
...
2
votes
1
answer
3k
views
Set Image width='x%' (percentage width not pixel width) when inserted via the media manager?
When uploading images via the media manager there are a couple of set sizes available such as thumb, medium and large.
I do know how to add additional sizes, but I have yet to get it to insert an ...
1
vote
1
answer
222
views
Dashboard - get status and position of metaboxes and pass them to ajax method
I'm wondering if it's possible to get status and position of metaboxes added to a dashboard-like page.
The main page of my plugin has several metaboxes laying in a two-columns page and a "table of ...
0
votes
1
answer
515
views
Add box with custom per-page properties
Hey,
I'm stuck trying to add a box with settings for all pages (the ones users create/edit).
What I'm attempting to do is add 6, 7 check boxes and an input field for all pages that alters the ...
2
votes
1
answer
4k
views
post-excerpt not one of the options under screen options
I want to turn the post-excerpt function on but it doesn't even show as an option under 'screen options' for posts. How do I get it to display as a check box under screen options?
I have tried ...
0
votes
1
answer
285
views
conditionally echo <br /> in meta box data loop
I am working on a Thematic child theme and using the WPAlchemy Meta Box Class to create an 'Artwork Info' meta box that I want to conditionally echo like this at the end of each post:
Title
Medium
...
1
vote
3
answers
5k
views
Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
Post save functions are conflicting with each other when adding them to the save_post action hook.
2 different custom post types with 2 different (one for each post type) custom meta boxes.
I'm ...
27
votes
4
answers
37k
views
How to set default screen options?
I'd love to be able to hide meta boxes using screen options, instead of removing them or restricting them to user roles, the goal is to just "uncheck" the meta box for the user.
I see how this would ...
22
votes
4
answers
14k
views
Passing error/warning messages from a meta box to "admin_notices"
I have a simple meta box that updates the post custom fields (using update_post_meta()).
How can I send a error or warning message to the next page after the user publishes/updates the post and doesn'...
0
votes
1
answer
114
views
Prevent custom post type from showing up in custom menus
How do I do that?
Any custom post type I register shows up as a meta box on the menu page...
3
votes
2
answers
4k
views
Add filter 'wpautop' to meta box textarea
I'm using -this tutorial- to add simple meta boxes to a custom post type. But the textarea meta boxes are spitting out content all as one big paragraph, with no <p> formatting applied.
What ...
2
votes
3
answers
2k
views
Media upload - choose only one file
It is possible to restrict the upload process to choose only one file. Now a person can select various files from pc, Im trying to find a way to restrict this feature just to one file.
Thanks in ...
0
votes
3
answers
2k
views
Wordpress global variables?
I've got page with metabox called "something". It can have two values "value" and "value2".
I'm using a shortcode at this page and want it to display something's value. The problem is I don't know ...
0
votes
2
answers
499
views
Parsing the post title to the media box page
I'm creating a media upload section in my metabox. One of the things I want to be able to do is to rename the filename of the media that is uploaded to the same as the post title. so for example, say ...
3
votes
2
answers
554
views
add_image_size creating lots of images (of various sizes)
I wonder if its a good idea to use add_image_size or is it just a convinence feature. I say this as I think add_image_size creates images of various sizes regardless of what the usage if the image ...
5
votes
1
answer
4k
views
Action hook on Edit custom post type?
Is there an explicit action hook that will fire when (or just before) the admin Edit page renders for a custom post type? Something similar to {$new_status}_{$post->post_type}?
I'm trying to find the ...
0
votes
1
answer
4k
views
meta box & callback function
Situation
I got a class where i add a meta box to the post edit screen.
EDIT: This is the working version now
/**
* Calls the class on the post edit screen
*/
function call_someClass()
{
...
6
votes
2
answers
3k
views
post formats - how to switch meta boxes when changing format?
Problem
After realizing that post formats are pretty popular, but only a extremly rough drawn concept, i see that users will run into possible traps.
Post format ...
uses post meta fields & ...
2
votes
6
answers
6k
views
Dynamically Creating Meta Boxes
So I was wondering if it's possible to dynamically create meta boxes in the post admin. I have a lot of data but don't want to hardcode every meta box needed in functions.php.
An example would be a ...
3
votes
4
answers
8k
views
custom fields for attachments?
is it possible to add extra fields via the functions.php script for attachments in wordpress?
Tried loads of examples but none seem to work. Worried an existing plugin might be affecting my attempts ...
0
votes
1
answer
2k
views
How to add a textarea to only one of the fields of this custom metabox?
This is the code I used to create the meta boxes:
<?php
$key = "project";
$meta_boxes = array(
"project_services" => array(
"name" => "project_services",
"title" => "...
1
vote
2
answers
7k
views
Custom Post Type Metabox - Not Saving
I've added a custom post type, which is working great; I've also added two metaboxes, which appear to work well, but the content in them always disappears after a few minutes.
If anyone could help ...
1
vote
2
answers
1k
views
Metabox saves on Update or Publish, but not on Saving Draft
I have created custom post types that also have custom meta_boxes I've created. Currently, they save when I publish or update a post, but they don't save when I'm in draft mode making changes.
...
1
vote
1
answer
383
views
more than one upload directory?
Is it possible to have 2 separate upload directories? One in which the resized images are created/stored and another to where full size original images are uploaded.
This would let you use the path ...
2
votes
1
answer
3k
views
Why is save_post hook not running?
I am trying to save my meta box, I have something like
function xxx_meta_box_callback() {
add_meta_box('xxx-meta', 'xxx Details', 'xxx_meta_box', 'xxx-post-type', 'side', 'default');
...