The tag has no wiki summary.

learn more… | top users | synonyms

19
votes
1answer
37k views

How to change the default registration email ? (plugin and/or non-plugin)

After a new user registration, WP sends out an email with the login / password, and a link to the login page. Is there a way to change this defaut email template? I'd also like to change the subject ...
11
votes
5answers
2k 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 ...
6
votes
3answers
3k views

How to set a default format for a custom post type?

I created a custom post type for my blog, to allow easier separation of content. This new post type supports different post formats, but most of them will be galleries. register_post_type('atelier', ...
5
votes
4answers
4k views

Is there a way to set default custom fields when creating a post?

When I'm creating a new post, just after clicking "Add New", when the post editor shows, instead of having to use the dropdown and choose a custom field to use, I'd like to have some default custom ...
4
votes
1answer
631 views

How to display by default only published posts/pages in the admin area?

As it is, WordPress displays by default all the pages/posts in the pages/posts list in the admin area, no matter what their publishing status is. I have a lot of drafts, but usually I'm much more ...
3
votes
1answer
97 views

Why do folders have Empty Index.php Pages?

/wp-content/ /plugins/ /themes/ All have empty index.php files in it. Are they safe to delete? What is their purpose, why even be in the default install if they're empty? What is their purpose?
3
votes
4answers
3k views

How to Create a Custom WordPress Install Package?

I downloaded the latest version of WordPress (3.5) and created a custom theme. I plan to upload and install it for multiple clients. Is it possible to customize the default settings such as not have ...
3
votes
3answers
492 views

Deleting default category in wordpress

I'm looking for a way to delete default category functionality in wordpress but after i delete the default category in wp_terms table in mysql database, it automatically assigns default category to ...
3
votes
1answer
344 views

Make Theme automatically choose default nav menu

I have been developing a WordPress theme. I want to be able to, once activated, look to see if there is already a menu created in the backend. If it exists then choose it and use as the primary menu, ...
3
votes
3answers
4k views

How to fix a theme with page.php Default Template that accidentally deleted?

I am having a quite odd case with WP today, and after spending about an hour searching on google and forums, can't find any answers. I hope posting here might allow me some chance to get help from ...
2
votes
3answers
1k views

Multisite: setting theme and options when a new blog is created

When a new blog is created in a WP Multisite instance I want to be able to set the default theme and configuration options create 2 menus (main and secondary) and associate them with the 2 slots ...
2
votes
1answer
508 views

Set default text for the editor in new posts

I was wondering, is it possible to set default text to appear inside "text" part of the wysiwyg located on Create post page? So every time you click add new post that text would be there waiting for ...
2
votes
1answer
153 views

How does the default recent posts widget work with cache?

I am trying to build a widget based on the default wordpress recent posts widget. In wp-includes/default-widget.php , I noticed in class WP_Widget_Recent_Posts in function widget(), the recent posts ...
2
votes
1answer
37 views

Default WP search excluding specific characters, is it possible?

I would like to know if it possible to customize the default search module of Wordpress. I've a website dealing with teams and teams' news. Some of those teams has their names written like this ...
2
votes
1answer
151 views

Delete pages and Create default pages for all new network sites

I am using the following code to delete some default pages and to also create some default pages for all new sites that are created. It work as is now but that is only because I purposely have a ...
1
vote
3answers
7k views

Why are the comments disabled by default on my custom_post_types?

I am using a custom post type + taxonomies in a podcast solution for a client. The setting (settings >> discussion) for comments is set to "allow comments". When I add / edit posts under the "posts" ...
1
vote
1answer
512 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
1
vote
2answers
2k views

Default or Preset Content for Custom Post Types

I am trying to modify the code for default content to display based on post type, but so far I have been unsuccesful. The base code is: add_filter( 'default_content', 'my_editor_content' ); ...
1
vote
2answers
95 views

How to deal with equal & similar arguments for a function?

I'm currently extending my pagination plugin, after a hint by @toscho. So the plugin will now use the same filters, hooks and arguments as the native wordpress pagination functions. My problem is ...
1
vote
1answer
1k views

Force display name as full name

Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default?
1
vote
2answers
304 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
1
vote
1answer
30 views

Display posts styled exactly like default posts

What would the parameters be for the shortcode to display a category of posts exactly like they would appear on the main blog page? Seems pretty simple but I just don't see which parameter would do ...
1
vote
1answer
50 views

Include default functions and methods

I'm starting a new service for a customer consisting in adding a input API in their WP website. I started by creating a blank page on the root but then I realized I couldn't access all methods and ...
1
vote
2answers
370 views

new page sidebar-template by default

Using twenty-eleven theme, need to change default template for new page from standard to sidebar. anyone?
1
vote
1answer
191 views

Change comments form title on a page by page basis

I'm looking to change the comments form title (my theme defaults this to "Leave a Comment" or "Leave a reply to"). I thought perhaps I could add a hook to comment_form_defaults but my snippet below ...
1
vote
1answer
41 views

show random image in loop if image is not set

I want to show a random image from a few options in my loop if a custom field hasn't a certain value, or it could be if it had no thumbnail. In any case, it should spit out one of the random images. ...
1
vote
0answers
70 views

Wordpress Multisite - Create Default Post and New Category On New Site Install

I've looked around quite a bit, but couldn't find help with creating a new, initial blog post and new category (or renaming the default category) once a new sub-domain has been installed. I've added ...
1
vote
0answers
277 views

Set default value for radio button in WP Alchemy custom meta box?

I'm using the WP Alchemy Metabox PHP class (www.farinspace.com/wpalchemy-metabox/) to add a custom meta box with a radio select to a custom post type. The code below shows the code I'm using for the ...
1
vote
4answers
852 views

Create a custom WP install with plugins, theme etc already installed?

Is it possible to create a Wordpress install that will automatically install with multiple pliugins, a particular theme and custom settings so when I setup multiple blogs I don't have install so much ...
0
votes
1answer
112 views

Using _s theme, menu changes do not affect header menu

I'm using the _s theme and seeing the header menu point to 'Home' and 'Sample page'. in functions.php, we have register_nav_menus( array( 'primary' => __( 'Primary Menu', 'mytheme' ), ...
0
votes
1answer
36 views

Redirect page to default subpage

On a site that I'm working on I have a particular page that has four subpages, which act like process steps. I want the parent page to always redirect to the first of these as a default, should the ...
0
votes
2answers
2k views

Setup A Default Featured Image

I'm trying to setup a default fallback featured image on my website to ensure consistency with images being displayed for every post, even when an image is not embedded in the post. I've tried a ...
0
votes
2answers
355 views

wp_head() not inserting the default stylesheet style.css

I have a custom theme with just a name in its style.css. I've activated it in admin which shows it just fine. In the index.php just <?php wp_head(); ?> and it doesn't output the line that is ...
0
votes
1answer
927 views

Display thumbnails for certain category posts

I have wondered about the web and came across this beautiful piece of code: if(has_post_thumbnail()){ the_post_thumbnail(); }else{ echo '<img src="' . get_bloginfo('template_directory') ...
0
votes
1answer
60 views

Default Display Name As Username

I don't know why it's so hard to find a solution for this but nothing seems to work when i finally find an answer.. I want to simply make the default display name as the users login/username.. I ...
0
votes
1answer
744 views

Add a “default sorting” menu to child store pages

I'm new to WordPress WooCommerce and I can't figure out how to add a "default sorting" drop-down filter to my category shop pages. I know it's on the plain old "SHOP" page, but my navigation doesn't ...
0
votes
2answers
68 views

How do you set the default page in WordPress?

Assuming I have a page with the URL http://papermepress.com?page_id=2 that I want to set as the default, what do I need to do so that when a user types in just http://papermepress.com they see that ...
0
votes
2answers
490 views

styles/default.css in markup, where does it come from? [closed]

I have the following line under the head tag but I don't have the file styles/default.css in my theme and consequently get a loading error in browsers. I'd like to eliminate this line but I don't know ...
0
votes
1answer
13 views

Could not find site error

Hi I was trying to change the default site of our multisite wordpress, I tried to do this first at the admin by adding a new site and checking the checkbox for the setup of the home site, after that ...
0
votes
0answers
37 views

How to change the widget's instance settings depending on sidebar

I want my widget to have one default option value in sidebar-1 and another in sidebar-2. How can I do it? I know wp saves widget right after drag and drop it into different sidebar in widget admin ...
0
votes
1answer
27 views

Default Customizer Code

To create a new CUSTOM section in my Customizer I do this... $wp_customize->add_section('logo_section_one', array( 'title' => __('Upload a Logo', 'mb' ), 'description' => __('Use an ...
0
votes
0answers
27 views

Default options in a theme form

I purchased a theme that allows to choose the layout options when entering a new article from the backend. There are three options: none, right sidebar and left sidebar. As items are added to my ...
0
votes
2answers
63 views

View content from uploaded file in editor

I have a custom metabox that let's the user upload .csv files while creating a page. The content of the .csv is shown on the created page at the "front-end". I would like to show the content on the ...
0
votes
1answer
19 views

How do I control the fallback query after the original query returned cero posts?

I just figured out why WP developers expect you to create a separate 404.php page to control the output of that page. (and the silence about any attempt to do it otherwise) It's basically because ...
0
votes
0answers
30 views

wp_customizer control default value = 100 - control value

Within WP_Customizer I have two controls for setting the width of the main-column and the width of the sidebar. The default value of the main-column control is 77 and I'd like to set the default ...
0
votes
1answer
66 views

Why is it defaulting to “uncategorized” even after I select a custom taxonomy

I have created a custom taxonomy and configured it to work like a category. The taxonomy shows up fine on the admin, but when I create a post, it is then placed in the default uncategorized category. ...
0
votes
0answers
30 views

set custom value on default admin columns based on row values

I added some foreign key to wp_comments db table. Some comments could be indipendent from post. For these comments I've comment_post_ID set to 0. So i need something like: ...
0
votes
2answers
272 views

Set static page as default front page on newly created sites in multisite

How to set a Static page (example Sample Page with every WordPress install) as default fron page for every newly created site on multisite network. I mean when a new user creates a site on my ...
0
votes
2answers
211 views

Set Default Category to Username

I installed a plugin called "Symbiosis" which creates categories automatically copying a user's username upon them signing up. Whenever any user creates a post on the site, I am trying to figure out ...
0
votes
3answers
119 views

How do I add a nested conditional within an echo - to use a default image if there isn't one in the post?

I'm trying to add a conditional that will display a default image if the "image" field isn't populated... here's what I'm trying to work with: $args = array( 'posts_per_page' => 3, ...