Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

2
votes
2answers
81 views

multiple comment text areas

I need to create a user comment form with three text areas and then display them in comments. I don't know where to start - cannot find any plugin but would like to code it anyway. Any pointers much ...
0
votes
1answer
2k views

Get author full name

I'm trying to display the first and last name of an author without having to change the "Display publicly as..." setting. Problem is, I can only seem to find solutions for either or, or at best ...
0
votes
1answer
79 views

Help with listing current users submitted custom post type in template file

I have the following code to list the member's post that they created. However it is listing all posts. Anyone know how to fix it? Thank you! <?php if ( is_user_logged_in() ) { global ...
0
votes
1answer
437 views

Don't change Custom Post Type slug to unique value

I have a situation where it is needed that if I create two CPT pages wich both have the same name and the same slug. For example, if I add two CPT pages, wich both called "Post Name": The first slug ...
1
vote
0answers
202 views

Admin search post meta

I have currently built a property database using WordPress and am purely using the back-end for the whole job. I am listing all the properties and used a plugin called "Easy Filter" to add custom ...
2
votes
1answer
576 views

Modify Javascript Configuration Options for Theme Customizer Colour Picker

I've started fully integrating the Wordpress Theme Customisation API into my Wordpress theme and it's phenomenal. One issue I've encountered is that including the default colour picker is great, but I ...
0
votes
2answers
1k views

Change the way wordpress outputs images or image galleries

The title is the short version of the question. Here's what I need in more details... If the answer is not so simple, I would be glad if you can point me to the right direction with a tutorial or to ...
0
votes
2answers
77 views

Create a child Theme or custom Theme

I am new in WP but I 've good knowledge of HTML and CSS. However, my PhP knowledge merely covers some basics. I also have good knowledge of Joomla but I wanted to give WP a chance. I need to make a ...
0
votes
1answer
155 views

Best Way To Structure 3 Tiered Site

I'm starting a quote site using Wordpress. I'm wondering what would be the best way to structure the site considering the fact that I'd like to include a lot of static content on the tier 2 pages. ...
5
votes
5answers
2k views

Add separator to admin submenu

I would like to add a separator to the admin submenu section, NOT in the top level section. I'm thinking of using javascript and styling to do the job, but I was wondering if there's a more ...
0
votes
1answer
2k views

How to change the wp_upload_dir() path in plugin

I am using one plugin to upload all the client files. By default all the uploading files stored in the path wp-content/uploads/-plugin-name- . How to store all my files in my custom directory that ...
1
vote
1answer
476 views

Random Default Avatar Function

UPDATE! After a little help from the wordpress.org forums, I made some progress with this code: // Custom Default Avatar if ( !function_exists('fb_addgravatar') ) { function fb_addgravatar( ...
0
votes
1answer
88 views

Accessing + retrieving custom database in WordPress

I am looking for something really simple(?). I am using WordPress as a CMS. I created a new page in which I added a form (questionnaire). Inside WordPress' database (the same database in which all ...
11
votes
2answers
1k views

Specific upload folder for PDFs in custom Post type in WP multisite

I need to filter uploads to a specific folder for a custom-post type called "document" only for PDFs. So far, I have: function custom_upload_directory( $args ) { $base_directory = ...
1
vote
1answer
3k views

Filter results with custom field values and dropdown

I need to filter posts by a custom field value. My specific example: User browse to products > category 1 > subcategory A. ALL "subcategory A" items (products custom post type) are displayed as ...
2
votes
1answer
48 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 ...
0
votes
1answer
174 views

How to remove a settings section from the Theme Customization API preview pane?

I am currently working on a theme that uses the Wordpress Customization API and I need to remove some pre-existing sections from the customization preview pane. Is there somewhere like a global ...
2
votes
2answers
619 views

Create pages automatically if they don't exist

I have a WPMU instance that works less like a network of blogs and more like a holistic application. I'm needing to do a check and see if 3 pages with the slugs 'home', 'login', and 'password' exist. ...
0
votes
0answers
29 views

Plugin “virtual” page [duplicate]

Possible Duplicate: How to Rewrite Wordpress URL for a Plugin Question I am trying to create a plugin that adds an additional page to a Wordpress public site and allows the plugin to ...
0
votes
2answers
33 views

Need custom picture field for pages

I want to have a picture or multiple pictures on each page in wordpress. AFAIK there are two standart ways of doing this in WYSIWYG editor, attach file etc widgets. Problem is, those wont do for ...
0
votes
1answer
195 views

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called ...
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
163 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, ...
1
vote
1answer
372 views

How to Create a Custom Panel and Fields in Post Page [Plugin]

I would like to write a custom plugin that adds a custom panel below the post compose panel that will have a few fields and a submit button. JS will kick-in to submit content to the database, without ...
2
votes
1answer
611 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, ...
0
votes
1answer
76 views

How to apply order on custom taxonomy and custom meta key on custom post type

Here is the code in am using $arg= array( 'post_type' => 'vr_listing', 'tax_query' => array( array( 'taxonomy' => 'vr_listing_status', 'field' => ...
0
votes
1answer
161 views

How to create this kind of sub-menu in new line?

In my design I need use this kind of wordpress custom menu. Menu (I am able to do this) Menu element with sub menu. (but not this one) In this UI , I can not able to separate sub-menu to the new ...
1
vote
1answer
269 views

Permalink structure by Post Meta value

I have the following issue: Two Custom Post Types, lets call them cpt1 and cpt2. In cpt2, I have a custom meta box in which you can select a post from cpt1, its post ID is stored in a meta value ...
0
votes
1answer
125 views

How can i display on front page a movie that is atached in a post type

Im building a cinema site, In post's i store the Movies I have a post_type name "box-office" , this post type have 1-10 custom fields, with i can select the movies stored in post's. locul_1 - is one ...
0
votes
0answers
29 views

Custom Pagination for a Page with Comments [duplicate]

Possible Duplicate: Pagination not working with custom loop Hello everybody and good even. The Problem: I have a Page where the comments are listed like the posts a displayd in a ...
0
votes
3answers
449 views

Different logo on homepage

I have uploaded a file as my main logo within the theme settings but would like a different logo on the main page. The theme I am using has a custom css option within the theme settings, can I use ...
0
votes
1answer
207 views

Custom tabs widget don't work in google chrome, is blocked, do not change the tabs. Why?

Code is the problem or is a Google Chrome issue? Here is the code: /*-----------------------------------------------------------------------------------*/ /* Create the widget ...
0
votes
2answers
10k views

WooCommerce: multiple input field for multiple product variations

I'm trying to customize the default Woocommerce theme to my needs. I have a product that comes in two variations: it's wine, so variation A is a 6 bottle pack, and variation B is a 12 bottle wooden ...
0
votes
1answer
70 views

What capability is required to view posts, scheduled in the future, by someone else?

So, I'm trying to create a number of custom roles within my theme to meet with the custom requirements of the site. The first, and most simple, being 'external viewer' who I want to simply be able to ...
2
votes
1answer
461 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 ...
0
votes
1answer
54 views

Moving from one WP site to a new WP site incrementally

I'm working on a site that will be changed incrementally (i.e. first the new Homepage will go live, then product pages, then contact, etc). It will not be a switch-flip, wholesale changeover between ...
0
votes
1answer
42 views

Looking for a way to take readers to random post when clicking a link

I did some reasearch but couldn't find a way to do it. Just to be clear I don't want to show a widget list of random posts on the sidebar. I want the ability for reader to click on a link that says ...
1
vote
1answer
235 views

Custom static page get_header error

I have a pretty simple question. I want to make a static about page for my wordpress site. I don't like the format of the wordpress static pages that are managed through the control panel so I thought ...
0
votes
3answers
5k views

How can I disable parent menu item links?

I don't want to have the parent menu items of my site's nav menus linking to a separate page. For one thing I don't want to have a superfluous page. For another these links hobble site navigation for ...
0
votes
2answers
124 views

How can I hide custom field from users used for caching response from external api?

I have a custom meta box created using Rilwis meta box script(http://www.deluxeblogtips.com/meta-box/) inside my theme functions.php. It has 2 text fields, one field is required to fetch results from ...
0
votes
1answer
81 views

Passing user meta through comment form

I want to create a hidden field in the user comment form storing the logged in users info (already created a custom field at registration) so I can pass it to the comments section to display on the ...
2
votes
1answer
5k views

Can a custom post type have a Parent Page?

I've seen a lot of posts out there in the Webiverse about assigning a page as a parent of a custom post type. After four hours I can't find a solution and need some help. I've create an "About" page ...
0
votes
2answers
201 views

Wordpress custom post type with folder structure in slug

I have setup a custom post type with the slug "interview" and it is working fine. I am trying to change the slug to "magazine/interview" but I keep getting 404 errors when I try to access the posts ...
0
votes
2answers
558 views

Can I the caption shortcode to set caption to a data attribute, and with the image's alignment intact?

I want to output an image caption in this kind of format: <img class="alignleft size-medium wp-image-316" alt="Image Title" data-caption="Here lies the image caption" ...
0
votes
2answers
170 views

Custom MySQL query to list post

I have the following query: SELECT p.* FROM orders_items oi INNER JOIN products pr ON pr.`post_id` = oi.`product_id` INNER JOIN posts p ON p.`ID` = pr.`post_id` AND p.`post_type` ...
2
votes
1answer
364 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 ...
0
votes
1answer
631 views

how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?

How add_action("manage_posts_custom_column", "custom_callback_fun01"); relate to add_filter("manage_{xxxx-xxx}_columns", "cusotm_callback_fun02" );? How do they both work together? By using these ...
1
vote
1answer
3k views

Custom Login and Registration form in Ajax

How to create the custom login/Registration form using AJAX.
0
votes
1answer
153 views

Need Advice to Working with Custom Post Meta

I'm working with some quiz script which is using javascript to init the script, the data structure which I working on is look like this var quizArray = { 'contents': [{ 'question': 'First ...
1
vote
1answer
2k views

Custom search page and search by title, content and tag

Can someone review my code , I need to know better solutions or any bug. Okey ! , I made a PHP file to get search results by parameters and search by title , content and tag PHP's head look like: ...