Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

4
votes
2answers
392 views

Enable / Add Custom Keyboard Shortcuts To Work With WordPress' HTML Editor

I use Markdown in my posts, and the plugin I use for that purpose requires the Visual editor be disabled. The HTML editor is pretty much just a text box. To make writing easier, I would like to ...
4
votes
3answers
2k views

Adding extra authentication field in login page

I am going to enhance my WordPress authentication page. My idea is that simply adding an extra field into the login page. The extra field will require user to enter personal identification code (4 to ...
4
votes
2answers
754 views

Any official way to create an admin theme?

I was wondering whether there's a common way of customising the aspect of the admin panel. I know you can play with the css and js files but what I was looking for is some kind of "admin theme" like ...
4
votes
3answers
638 views

What are the ways to use WordPress as a user generated content site

What are the methods to create a user-generated-content website? I know each has his own favorite way to do that, please elaborate on your own method, how to implement it and the pros/cons. (This is ...
4
votes
2answers
420 views

Localization: I want the backend: english and frontend in defined language

I'd like to have the backend of Wordpress in English and use a different locale for the frontend so far I figure out perhaps I could do it by setting in the wpconfig the locale I want to use in the ...
4
votes
2answers
244 views

Add more rows on media picker

I'm trying to add more rows in the media picker modal window. Is there any clean way to achieve doing this ? Thanks !
4
votes
1answer
82 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
4
votes
1answer
171 views

Automatically Creating Posts for Popular Forum Topics or Products

I am integrating a Wordpress template with Buddypress (with bbPress included). I would like to automatically create a post for popular forum topics so that it will show in my main page. I am hoping ...
4
votes
2answers
100 views

Custom taxonomy: same terms, but for different years

I'm building a directory of people in a boarding house. What I'd like to do, is to be able to assign the following metadata to each person: Room number Parking space number Leadership positions ...
3
votes
4answers
8k views

get_the_term_list without links in 3.1

What function will display custom taxonomies associated with a post as text? I'm currently using get_the_term_list which works great for a singular page but not so much when using a taxonomy in the ...
3
votes
2answers
970 views

How to force one column layout on custom post type edit page?

I've created a plugin using custom post types and I need to force the default two column post page to a single column. At the same time, the Publish metabox must move to the bottom. I need to do this ...
3
votes
4answers
2k views

How can I create an alternative home page?

I'm working on a site which has a fully customized front page. Now I'm asked to add a more classic looking blog type page which will be reacheable at http://domain/blog. I tried creating a custom ...
3
votes
4answers
2k views

Consuming an external API in WordPress?

I have a client who has a WordPress website, and he want to extend it to add new functionalities. These functionalities are included in a website I have already done (a kind of search engine over a ...
3
votes
3answers
1k views

Removing fields from the Media Uploader/Gallery

I've been searching high and low for an answer. I simply want to remove the Alternate Text, Caption, Description and Link URL-fields from the uploader and gallery view. I seem that every thing else ...
3
votes
2answers
852 views

TV Show database - Best way for structuring it?

I want to make a TV Show database in Wordpress that has this URL format: /tvshows/friends/01/12/ /tvshows/ would list all series /tvshows/friends/ would list all the seasons available for Friends ...
3
votes
2answers
3k views

How to delete outdated, wrongly sized images in _wp_attachment_metadata?

I've got several custom image sizes for my blog. One of these is setup as add_image_size( 'slide', 640, 290, true );. These are used in a header slideshow. My problem is I've upped the dimensions of ...
3
votes
2answers
2k views

How can I hide a category from Contributors in the edit/add new post screen?

I have a situation where I need to hide a specific category and it's children from users who are logged in as Contributors. I don't want them to see this category and it's children in the categories ...
3
votes
1answer
5k views

Customizing the Subject Field in WordPress' Notification Emails?

Can I customize and edit the subject field in the "Password Reset" notification mails sent from our multisite blogs? I have tried some plugins like My brand login and white label CMS etc. But I can't ...
3
votes
2answers
100 views

When is it appropriate to put functions on page template vs. functions.php?

I'd like to improve my code and on a current theme, I've extended Wordpress with custom post types, metadata, customized user authentication, and a number of other items. Some of these functions ...
3
votes
1answer
58 views

2 seperate installation 1 theme same server

i got 2 separate installation on the same folder each in their own sub folder - they use the same theme which i copied twice. Every time i edit a file i need to do it twice and its a real hassle... ...
3
votes
2answers
684 views

How to make custom bulk actions work on the media/upload page?

I'm adapting a script I found online to add custom bulk actions to the screen with the list of posts. It has this line: add_action('load-edit.php', 'custom_bulk_action'); I'm trying to adapt it for ...
3
votes
1answer
404 views

When to use esc_url, esc_html, esc_attr, and friends?

Discovered esc_url today while customizing an _s theme. I understand what the function does (sanitizes the URL inside), but what I'm unsure of is the scope of its use. It makes sense to me that if ...
3
votes
1answer
89 views

What is the best practice for customizing a plugin's JavaScript/jQuery?

Most well written plugins support a safe means for a developer to customize/theme the plugin by copying PHP files to the theme directory and modifying the copies rather than the original plugin file. ...
3
votes
2answers
2k views

can I orderby one custom field and meta_query another in the same query

I have a custom query and I am filtering out events by custom field: event-month. I simple filter our the events that dont have a month_number = to date("n"); Its a pretty great little query, but I ...
3
votes
3answers
273 views

Editing theme files and access to the Code pages only to super-admin?

When I deal with Multisite installation.Some themes like mystique and aparatus provide the widget areas with in the theme-settings page to enter Advertising codes in the form of HTML or java script ...
3
votes
2answers
1k views

Associating an “author” with a custom taxonomy

I have a custom role, "Ministry Representative", which is able to log in and create and manage their own "Opportunities" and "Events", which is each a custom post type. On the front end of the site, ...
3
votes
2answers
6k views

Disable Specific Widgets on Selected Pages of a WordPress Website?

I would like to give a CMS look to some of my pages. I want to customize them by removing the default widgets and adding other widgets as my wish (I will use plugins like My Custom Widget to add ...
3
votes
2answers
4k views

Adding Custom Fields to WordPress Comment Forms?

What is the best way to add custom fields to a WordPress comment form? (for example subject, image, etc...) And how do I use the data entered afterwards...
3
votes
2answers
361 views

How to change admin bar color scheme in MP6 / WP 3.8 front end?

I need to change default color scheme for all users. The admin bar on my site is vidibile for all users including guests. The default black color scheme isn't beauty with my design and I would like ...
3
votes
1answer
78 views

Multisite, turn off “create new site”

If someone enters the wrong URL to my wordpress multisite, they get the option to create another site in the network. Why does this happen, and how do I turn it off?
3
votes
3answers
775 views

One site, 2 distinct sections: two different top nav menus?

I have a site that is in two distinct halves. I'd like the same template to apply to the whole site (from a look & feel perspective), but for each 'half' of the site to have its own top nav menu. ...
3
votes
4answers
16k views

Custom Post Types on Category Pages

I'm working with a custom post type that uses the normal WordPress categories. I am able to modify my category template to display my custom post types exactly how I want them. The problem is, once ...
3
votes
1answer
199 views

Custom Taxonomy-specific JavaScript

I'm looking to add some scripts and styles to particular taxonomy page. For example, I want to have a banner rotator only appear for posts that fall under the "issue" custom taxonomy. I've tried ...
3
votes
2answers
215 views

How to build custom WP admin with custom URLs

I would like to create a custom WP admin area, that uses custom URLs to navigate thought it and have a custom generated HTML. A member will be able to login via a custom URL, for example: ...
3
votes
1answer
305 views

Custom maintenance page

Is there a way to add a custom maintenance page from theme folder? I have the code for the activate maintenance mode but i can't get the styling.. function activate_maintenance_mode() { if ( ...
3
votes
1answer
455 views

Search through custom post type and custom fields takes 5 minutes

I got strange problem and im stuck. I have custom post type with around 15 custom fields. I moved data from old db (not wp) by using wp_insert_post ,update_post_meta and wp_set_object_terms. All ...
3
votes
1answer
339 views

Custom Fields and performance

My question : how many custom fields or even taxonomies WordPress can handle without affecting performance? The reason I ask, is because I started building a custom theme and I might need to have ...
3
votes
4answers
819 views

Is there a Wordpress Event Manager that links with your user database?

I'm presently moving my site from a different CMS. Geeklog to Wordpress. They have an event plugin that I used which is very simple. This is it... ...
3
votes
1answer
646 views

How to set up sub-categories for author pages?

I am setting up Wordpress for a school. They want to enable teachers to have their own section of the site where they can create posts in different categories (assignments, events, etc). I know that ...
3
votes
1answer
381 views

What specific database privileges does WordPress need?

I want to create a new database user for my WordPress installation. Usually on localhost, i can just use root, but it is good practice to use a user with as little rights as possible. What are those ...
3
votes
1answer
35 views

How to not allow custom roles to edit published custom post types?

I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members ...
3
votes
1answer
60 views

Can WP Customizer work with single pages or posts?

Theme Customization API has been added in WP 3.4 and is described here: https://codex.wordpress.org/Theme_Customization_API It makes it easy to add options such as "change background color" for ...
3
votes
2answers
198 views

How do I prevent one of two multiple loops from repeating on a second page?

I have a page with multiple loops, but the first loop repeats on the second (or Older) page. I want to keep the formatting but stop the post from repeating. You can see the problem here: ...
3
votes
1answer
29 views

how to enable different number of revisions for different blogs when using WPMU?

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog ...
3
votes
1answer
497 views

Limit search results to exact match

I have a problem showing results in Wordpress with WP_Query. Problem is simple but as far I'm not programer I wound it difficult. So, I have custom field with values like 1-1-1-1 and 2-1-1-1-1 for ...
3
votes
1answer
283 views

Pagination Help on Crazy Custom Authors Page

I've got a custom authors page for a multi-author blog. http://blog.securitytechnologies.com/meet-the-team/ Here's the code I'm using to generate the page (thanks to other folks in the support ...
3
votes
1answer
263 views

Converting primary keys from autoincrement integers to UUIDs

The Goal I'd like to have WordPress use a unique identifier instead of auto incrementing on the primary key, which is currently the WP standard approach, in order to facilitate integration of several ...
3
votes
1answer
208 views

Is there a way to do multiple ordering on a multiple meta_query?

I'm experimenting with searches and multiple criterias and ordering. Let's say we have a real estate site, all posts have 2 custom fields (price and surface), and we want the visitor to be able to ...
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 ...
3
votes
3answers
325 views

Localization For Two Different Regions/Domains with the Same Language

I have a site which is based in US (ex. www.example.com). We've been tasked to create a UK/GB version of the site which has it's own domain (ex. www.example.co.uk), but shares the same common ...