Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

2
votes
2answers
2k views

Redirect old permalinks to new permalinks

I changed the permalink structure from /%category%/%postname%/ to /%year%/%monthnum%/%postname%// How can I redirect all old posts to the new ones (eg: via htaccess)?
2
votes
1answer
133 views

Making a configurable field translatable

I'm working on a theme right now that gives the admin the possibility to set different texts that are used within the theme, by configuring them in the admin panel (e.g. the text that is displayed, ...
2
votes
1answer
385 views

In the new Theme Customizer API, how to send a value from the front back to the admin panel?

I'm digging a bit into the new Theme Customizer API, in particular into the javascript one, and what I find is delighting. I've managed to add my own custom parameters, and I also have the javascript ...
2
votes
1answer
294 views

Use plugin or custom post type for game score functionality

The last couple of days I've been working on a plug-in that adds the functionality of keeping scores from a paintball game. When I manage to finish it I want to present players with a form so they can ...
2
votes
1answer
116 views

Remove custom posts that match taxonomy value

I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'. What SQL query (or other method), could I use to delete all custom ...
2
votes
2answers
502 views

How do I override part of the main loop in my child theme?

I have a child theme based on the twenty ten theme which I am happy with except for one thing. My gallery posts (I am a photographer so the goal of my blog is pictures) do not show any images from ...
2
votes
2answers
1k views

Have multiple local wordpress installs share a wp-content folder and database

On my local machine, I have multiple wordpress versions installed so I can test the themes and plugins I develop. I was wondering if I could somehow create a central wp-content folder and database, ...
2
votes
2answers
62 views

Keep main articles and author blogs seprerate, News / Magazine like site

I am working on a project that requires a CNN like article structure, where there are main articles (published in a magazine 'volume/issue') and authors' blogs separate. The idea is to have official ...
2
votes
1answer
180 views

Using Custom Posts with Metaboxes and Drop-downs

When using Custom Posts and adding a Metabox, I was wondering how I could add a drop-down menu that would populate data that was added by the user. For example I want to be able to select a 'source' ...
2
votes
1answer
644 views

query_posts sort in multiple directions

I'm trying to improve my post sorting by using multiple criteria, but I want specific orders for different values. For example, I have a meta_key called 'featured' that I want to move any post up to ...
2
votes
1answer
609 views

How to use get_option() without any filter?

I'm using the newest WordPress 3.3.1 and newest qTranslate 2.5.27. I have made some an AJAX script which returns a value and message in the current language. Here I get my first problem, I solve it ...
2
votes
2answers
854 views

What's the best “insert all images” plugin?

I've tried several plugins that supposedly allow you to "insert all images" after using the flash based uploader to upload multiple images. However, I still haven't found one that ties in well with ...
2
votes
1answer
480 views

dynamic external javascript generated using php

How to write an external javascript file with dynamic variable values generated using php from wp db values? So instead of using wp_localize_script for inline js variables, I'd like to use ...
2
votes
1answer
173 views

Related links - from other sites

I'm in middle of re-building a website that's coded in a rather terrible custom CMS. Since the site is essentially a blog, I've been doing it in Wordpress. One thing I'd like to do is be able to add ...
2
votes
2answers
209 views

One Wordpress Install, Two Categories. Each Category Gets a Domain

Ok here is a setup I am aiming for, hopefully someone knows how to get me there: One Wordpress Install on www.mainsite.com www.mainsite.com will be a landing page that points to two Category links: ...
2
votes
1answer
2k views

how to redirect to a custom password retrieval page

I have a new site and I'm using bbpress beta-3 with it, I've created custom login/register/lost-password pages with the custom templates supplied with bbpress and I can't seem to find the ...
2
votes
2answers
236 views

Custom Theme Want To Remove One Category From All Displays

I created my own custom Wordpress theme for my website, everything is great. However, I have a strange need, I have one category which is kind of a 'placeholder' for content which is automated and ...
2
votes
1answer
2k views

Any way to “combine” galleries or show multiple galleries as one?

So let's say I run a TV show blog. One day, the show releases to the public a set of 10 screencaps from an upcoming episode. I post that on my blog, either as a post with multiple images, or ...
2
votes
1answer
648 views

get_post_meta in sitewide tags plugin fails to return value for custom fields

Here's another conundrum that I'm toying with. There's a routine within the sitewide tags pages plugin which takes a list of custom fields (entered in the admin settings) and then uses these as keys ...
2
votes
1answer
1k views

media_handle_upload weird thing

I am using a front end script to upload images , all works fine but recently i noticed the uploaded images are not saved in proper directory. My settings are to Organize my uploads into month- and ...
2
votes
2answers
107 views

Wordpress best solution shared theme for consumers and businesses (two url's one instaltion)

What would be the best solution for a wp (cms style) site containing a sub site for consumers and businesses. I've made a wp theme and its almost finished. In essence its gives you two choice to ...
2
votes
1answer
377 views

Show Custom Taxonomy Slug(s)?

can anyone help me with this? I need to print the slug of my custom taxonomy, can this be done? The following kind of works but it just shows the name, rather than the slug which i need for a class ...
2
votes
1answer
1k views

Extend the wp_get_archives output with '?post_type=foo'?

I've gotten my custom post types to display as it should in date based archives; the structure example.com/year/month/day (and above) works properly as long as it's extended with ...
2
votes
1answer
1k views

How to remove row-actions from pages table?

I've already found out here how to remove the row-actions from the posts table in wordpress admin. Now I'd like to do the same in the pages table. I've looked in the core files but, well, I just don't ...
2
votes
1answer
146 views

Is it possible to have two different previews of a post (ie. two templates for one post)?

I'm looking for a way to allow post editors to see two different previews of the posts they are writing. On the front, the same post can appear it two different sections of the website (each shows a ...
2
votes
1answer
2k views

Remove admin menu, admin header and admin footer for authors

I would like to remove everything except the “form” in wp-admin/post.php I would like to do this for user role "author" only. The reason for all this: I want the wp-admin/post.php to be a page where ...
2
votes
1answer
1k views

How to import custom data via XML, CSV, etc

We have about 10 years of custom blog-style, databased content that we want to import into a clean install of Wordpress. There doesn't seem to be an importer plugin that works with custom databsed ...
2
votes
1answer
87 views

Custom WordPress Feeds operators?

I wish to create a feed of my blog which is a feed of two categories OR the feed of some tag and not the feed of some other category I know how to do "have a feed of this1 + this2 categories", but ...
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
0answers
67 views

Check for and enforce unique value in user-entered custom meta field in WP Admin

I am trying to figure out how, on a new or edit post screen, to allow the user to enter a custom meta item, BUT force it to be unique. Ideally the process would work like so: Contributor logs into ...
2
votes
0answers
18 views

Migration from Squarespace to WordPress: Remove leading 0 from %monthnum% in permalinks [duplicate]

I need my WP permalinks display months without using any zeros in the URL i.e. /1/ instead of /01/ for January. I'm moving my blog from Squarespace to Wordpress and I obviously want to keep all my ...
2
votes
2answers
84 views

How to list all record from one custom taxonomy start with only one letter i.e A

I want to list all records in one custom taxonomy start with only A or B. Below code is to list all record with all letters. Here is the code to list all record with one custom taxonomy with all ...
2
votes
0answers
41 views

Why won't my custom widget stay in the sidebar after a reload?

After I drag my custom widget into a widget area and reload the page it's gone. Any ideas? <?php add_action('widgets_init','register_postTypeWidget'); function register_postTypeWidget(){ ...
2
votes
1answer
136 views

Impossible to get Attachments Outside Wordpress?

My page (outside the wordpress install) begins something like this: global $wpdb, $wp_query; define('WP_USE_THEMES', false); include_once 'word/wp-blog-header.php'; $args = array( ...
2
votes
0answers
50 views

How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Sub-Category1 tag1, tag2, tag3 Category1 Sub-Category2 tag1, tag2, tag3 ...
2
votes
1answer
126 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
2
votes
1answer
36 views

Custom Taxonomy conditionals

So I have setup a custom post type 'products' and custom taxonomies / categories 'defence' 'law & enforcement' and 'Commercial'. I have using the following conditional to set some specific css ...
2
votes
1answer
505 views

Post thumbnail relative link and HTML modify

I want to remove the website url from all the_post_thumbnail() so they become relative and remove/add attributes from the output. So far I got the following code added to functions.php of the theme, ...
2
votes
2answers
242 views

Add nav menu CSS class to body

I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes. For example, if the current menu item has a CSS class ...
2
votes
1answer
180 views

wp_query to display custom taxonomy terms

I have a custom post type named 'tours' and custom taxonomy named 'tourtypes' so i can categorize it into terms like 'cultural tour', 'sports tour' etc. I'm not the original author of this theme and ...
2
votes
1answer
362 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
2
votes
1answer
994 views

Integrating the Wordpress admin panel with a frontend theme

I am building a Wordpress membership site where I need to collect user generated content in form of: -posts -events -classified ads I am using three plugins to accomplish this. However I need to ...
2
votes
1answer
257 views

Two Navigation Menus - secondary nav is including main nav

Two Navigation Menus in Themes Produce the same menus? reference the subject on page link above. i created two navs, yet the secondary nav includes all pages. the main nav is fine, but the secondary ...
2
votes
0answers
40 views

Multiple homes for multiple languages [closed]

I want to have multiples homes, for use multiples languages. For do for example: if($_SERVER['SERVER_NAME'] == 'en.bz6.org') defime('WPLANG', 'en'); else efime('WPLANG', 'es');
2
votes
1answer
141 views

Redirect members to custom page upon logging in through WP admin

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.
2
votes
1answer
259 views

Posts not showing with custom categorybase and subcategories [closed]

Edit: Fixed. I had an error in my permlink structure. I have a problem with individual posts not showing with their URL. I have set a custom category base in Permlinks called 'story'. I have a ...
2
votes
1answer
504 views

custom session variables being lost in FF [closed]

for whatever reason firefox is dropping my custom session variables. the variables are for a custom user system that is built into my custom theme. this only happens in firefox, the user system works ...
2
votes
3answers
1k views

How do I create a widget that only allows a single instance?

How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface? The default behaviour of widgets allows multiple instances to be added. I am ...
2
votes
1answer
2k views

.current-menu-item class on custom post type children pages - again?

There is the situation. I have created the custom post type - products withfuncionality like pages - I have to create hierarchy. f.e: Chairs: Oak Chair Nice Chair The weird thing happens with ...
2
votes
2answers
316 views

Remove Author Slug & Replace With Username

I reviewed all related questions but none tackle this exactly so I'm posting the question in hopes the pro's know how to handle this. I would like to change the author slug to remove the term /author/ ...