The tag has no wiki summary.

learn more… | top users | synonyms

21
votes
1answer
45k 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 ...
5
votes
2answers
848 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
118 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
4k 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
643 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
451 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
3k 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
623 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
165 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
47 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
199 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
8k 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
585 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
2answers
1k 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 ...
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
57 views

have WP Gallery display the title instead of caption

OK, I have looked and read quite a few message boards about this problem and I can not seem to find an answer. I am uploading thousands of photos for a photographer and using the WP Gallery ...
1
vote
2answers
321 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
51 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
377 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
197 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
19 views

Setting Default Category for Custom Post Type Upon Autosave

I've been searching for a couple hours and consulted multiple posts, but I seem to get this to work. I have this weird bug where users cannot see their drafts of a custom post type if they don't ...
1
vote
1answer
99 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
87 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
332 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
2answers
451 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 ...
1
vote
4answers
996 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
131 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
65 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
1answer
46 views

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
0
votes
3answers
46 views

Images give 404 after changing default domain

Never encountered this issue before. So I've just moved a site for a client to another server and for some reason all images give me a 404 when I change the default domain in the database (siteurl and ...
0
votes
1answer
1k 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
17 views

How to view WordPress' default category IDs?

It seems that Wordpress has default categories with default (and unchangeable) IDs. For example, the uncategorized category seems to always have an id of 1. Is this always the case? Is there any ...
0
votes
1answer
66 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
1k 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
69 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
518 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
16 views

How to add a post with new Taxonomy without assigning to default category?

I need your help, I have created new Taxonomy in WordPress (Called Sources) and whenever I create new post and select that new Taxonomy WordPress forces to assign Default category. How to disable ...
0
votes
0answers
28 views

Assign default category for custom post

I am trying to assign a default category to the custom type posts I am using. I found some threads related to that, but they don't seem to work. I have this code so far function ...
0
votes
1answer
38 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
75 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
36 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
45 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 ...