12
votes
5answers
4k views
Is there a way to get N number of WYSIWYG editors in a custom post type?
Is there way to have multiple WYSIWYG editors for a custom post type? For example, if I had a 2 column layout I wanted to have one editor for one column and another editor for the other.
18
votes
9answers
16k views
get name of the current template file
I've found this to display the current name of the file used in template:
function get_template_name () {
foreach ( debug_backtrace() as $called_file ) {
foreach ( $called_file as $index ...
9
votes
7answers
11k views
Front-end Register Form
I'm looking for an easy way to place the user registration form on the front-end of a WordPress site. I've already used wp_login_form() to place the login form on the front end, but now I need to do ...
12
votes
1answer
2k views
Limit image upload to one and disable audio, video and other document file types to upload
Somebody knows some trick in Add new Post to:
Disable the upload of audio, video and other filetypes.
Only accept the upload of an image (jpg, png, gif).
Limit the upload of each Post to only One ...
10
votes
5answers
4k views
Can I add a Category Metabox to attachment?
I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so:
add_action('init', 'reg_tax');
function reg_tax() {
...
9
votes
1answer
2k views
Alternative to query_posts for main loop? [duplicate]
Possible Duplicate:
When to use WP_query(), query_posts() and pre_get_posts
I just noticed today that the documentation for query_posts() mentions some "disadvantages" of using query_posts ...
6
votes
3answers
11k views
Submit post and upload image from front-end
I am trying to do something similar to the above question. I am trying to make users post and upload images from front-end. I have already done the post form and its working.
I just followed and ...
13
votes
7answers
8k views
Why is my database import losing text widget data?
I've created a site in WordPress on our development machine. In the theme we're using there are numerous widget zones to display text in (sidebar and front page). I've used simple Text widgets in all ...
14
votes
5answers
4k views
Conditionally Loading JavaScript/CSS for Shortcodes
I released a plugin that creates a shortcode and requires a JavaScript file and a CSS file to load on any page that contains that shortcode. I could just make the script/style load on all pages, but ...
5
votes
1answer
3k views
Rename files during upload using variables
I'd like to rename files during upload and set their names to the post slug the files are being attached to, plus some random characters (a simple incremental counter will de just fine) to make the ...
9
votes
4answers
6k views
Include custom taxonomy term in search
I have two custom taxonomies applied to two custom post types. the terms list on the sidebar just fine and will list all posts associated with it. However, if you search one of the terms in specific, ...
9
votes
3answers
4k views
Saving Taxonomy Terms
I have an interesting problem which I hope someone can quickly answer.
I have created my own metabox which, based on "MY METABOX CODE" (list below) is correctly displaying a dropdown list of all my ...
9
votes
2answers
3k views
Best practices for localizing WordPress content?
A client asked for a blog that will have localized content (i.e. en.blogname.com for English content, fr.blogname.com for French content, etc). Being new to building such a blog, we recently ...
4
votes
5answers
7k views
How to split a loop into multiple columns
If I have a loop running from a category query like :
<?php $the_query = new WP_Query('cat=1&showposts=50&orderby=title&order=asc');?>
<ul>
<?php while ...
2
votes
2answers
4k views
Dynamic navigation for custom post type (pages)
I have a set of custom post types (capability_type=page)
I want to include these in wp_list_pages() or similar so I can use the dynamic classes .current_page_item etc
I've read this post but I'm not ...
5
votes
5answers
663 views
Membership / subscription plugins - alternatives
Does anyone have recommendations (backed by experience) for a membership plugin that can
Provide for recurring subscriptions via PayPal
Allow selected posts to be visible only to subscription ...
3
votes
2answers
1k views
Adding jquery and thickbox to wordpress theme
I would like to add thickbox for the template which I develop to wordpres. At this time I'm trying with a clean template that have only header.php footer.php index.php and functions.php
I've included ...
2
votes
2answers
2k views
How to create additional full text RSS feeds
At the risk of sounding completely ridiculous, i'm posting this question here as the nature of my query doesn't seem to help me much from google.
My wordpress default rss feeds makes use of post ...
3
votes
1answer
106 views
Show shortcode without executing it
I am trying to display code in my WordPress page and it isn't working. Everything I read says that you should be able to just use pre tag with code tag and it would be good but when I try to display a ...
3
votes
2answers
1k views
Removing the “Website” Field from Comments and Replies?
In an effort to combat comment spam, I'd like to hide or remove the "Website" field from the "Leave a Reply" section for page and site comments.
I have no desire to increase others page rankings by ...
1
vote
1answer
181 views
Execute function when post is published
I try to use this function i have created when a post is published for the first time.
function a_new_post($post){
$post_id = $post->ID;
if ( !get_post_meta( $post_id, 'firstpublish', $single ...
2
votes
2answers
349 views
Next_posts_link() works only with original $wp_query
I've got custom template that I want to display paged blog posts. This is the beginning of my file:
$wp_query = new WP_Query($args);
if($wp_query->have_posts()){
...
2
votes
3answers
872 views
Automatic Updates For Private And Commercial Themes?
Is there any way to get wordpress to check for, download private theme updates?
I found this plugin for private plugin updates....
...
-2
votes
2answers
1k views
How can I make all gallery images to open in a new window?
How can I make all gallery images to open the high resolution image in a new window?
16
votes
1answer
19k views
How to edit a user profile on the front end?
How can I edit a user profile in the front end with a form?
first name, last name, username, email address and password
28
votes
3answers
2k views
Opinions and recommendations on the best barebones base theme [closed]
Preamble
I'm finding myself building more and more WP sites "from scratch" as it were (ie: ignoring any theme designs out there and just creating a design wireframe purely on the needs of the client. ...
12
votes
2answers
4k views
Creating an Image-Centric Custom Post Type?
Does anyone have any tips for creating an image-centric custom post type?
To elaborate, my blog has rotating header images, shown below:
The two images in the top left are randomized, and exist as ...
11
votes
7answers
9k views
Changing the Order of Admin Menu Sections?
I am getting a bit frustrated over here after having spent a few hours trying to accomplish this fairly simple task without any luck.
Essentially I have 5 custom post types which I created and all I ...
12
votes
4answers
4k views
How do I add CSS options to my plugin without using inline styles?
I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS ...
11
votes
4answers
3k views
single-{$post_type}-{slug}.php for custom post types
My favorite part of the Wordpress template hierarchy is the ability to quickly create template files for pages by slug, without having to edit the page in Wordpress to select a template.
We can ...
20
votes
4answers
1k views
How to implement a customizable free OpenID authentication?
OpenID is a standard commonly used nowadays. I am trying to implement OpenID on my blog, but I have many difficulties.
I tried OpenID plugin but it seems to be incompatible with Wordpress 3.0.
I ...
8
votes
3answers
3k 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 ...
2
votes
4answers
6k views
Using WP_Query to Query Multiple Categories with Limited Posts Per Category?
I have 3 categories with each 15 posts, I want to do ONE query to the db bringing only 5 first posts for each category, how can I do it?
$q = new WP_Query(array( 'post__in' => array(2,4,8), ...
7
votes
1answer
2k views
How to remove Biography from user profile admin page
I would like to remove or hide the Biography input field from the profile page. How do you do this? I already removed some contact methods from this page, but I'm not sure how to get rid of the ...
7
votes
4answers
1k views
Inserting terms in an Hierarchical Taxonomy
I'm really having a few issues with inserting terms. Here is my scenario: I have a taxonomy called veda_release_type:
//Release Type and Region
$labels = array(
'name'=> ...
5
votes
3answers
3k 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 ...
4
votes
3answers
4k views
Custom Post Type Archives by Date and Taxonomy
Lets use the classic example of a custom post type called "movies", with its own taxonomy called "genre".
By registering the custom post type (with a "movie" slug), the permalinks are already set up ...
10
votes
3answers
1k views
Open Source Forum for wordpress similar to stackexchange or stackoverflow [closed]
I have to add forum feature in my wordpress blog.I see bbpress but would like to add forum similar to stackexchange or stackoverflow.
Please let me know.
7
votes
1answer
1k views
Passing a parameter to filter and action functions
Is a way to pass my own parameters to the function in add_filter or add_action.
For example take a look in the following code:
function my_content($content, $my_param)
{
do something...
using ...
9
votes
3answers
4k views
User registration then auto login
I am using a plugin modified for my purposes. What I am after is after the user has registered for it to automatically log them in and return the to the current page. At the moment it sends them an ...
6
votes
4answers
1k views
How do you use a CPT as the default home page?
I have a client who's site will be making heavy use of custom post types to configure their site. But I'm between a rock and a hard place for their requested home page.
In reality, the home page ...
4
votes
2answers
12k views
How to customise the output of the WP image gallery shortcode from a plugin?
We're building a plugin that displays posts, and we also want to display the image gallery when it is used in a post. However, we need to limit the number of photos displayed? Is that possible?
2
votes
1answer
1k views
How to quickly switch custom post type singular template?
I have a custom post type called movies and I need to quickly switch the template that displays the movies cpt on the front end via a link. How can this be done?
Files I have:
single-movies.php
...
6
votes
4answers
5k views
getting all values for a custom field key (cross-post)
I know how to get a custom field value for a specific post.
get_post_meta($post_id, $key, $single);
What I need is to get all the values associated with a specific custom post key, across all ...
5
votes
1answer
1k views
How to add defer=“defer” tag in plugin javascripts?
I couldn't add defer tag in plugin javascripts. Google developer pagespeed test suggests me to add defer tag in contact form 7 javascripts.
This is how contact form 7 includes javascript in header.
...
3
votes
1answer
3k views
Form to Add Posts to Custom Post Type
Basically I want to display a form on my blog (on a certain page) that will allow anyone to fill it out and it will create a post in a custom post type.
I saw the answer once before but I can't find ...
1
vote
1answer
2k views
Remove parent category from permalink? Basically only have the child category?
I think there used to be an out-dated plugin to do this. Is there any way to do this easily with just a little code? We prefer not to rely on a plugin since that makes us dependent on the developer ...
10
votes
2answers
3k views
Adding an Arbitrary Link to the Admin Menu?
Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google?
In my ...
3
votes
7answers
2k views
What are options are there to implement a multi language site
What is the best way to have multiple languages on a site. I was thinking of using WP3.0 and then having each language of the site being a seperate blog in a sub directory. I.E.
example.com
...
2
votes
1answer
530 views
How can I display parent and child taxonomies in separate drop downs?
The requirement is where i have a taxonomy State which is the parent and it has a child sub-taxonomies they are the Cities, Need to display the state as a drop down, when i select the particular state ...