Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
1answer
190 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
143 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
302 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
523 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
66 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
135 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
224 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
121 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
346 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
193 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
9k 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
62 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
399 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
53 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
40 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
192 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
4k 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
115 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
78 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 ...
1
vote
1answer
4k 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
179 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
369 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
160 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
302 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
516 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
2k views

Custom Login and Registration form in Ajax

How to create the custom login/Registration form using AJAX.
0
votes
1answer
144 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
1k 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: ...
0
votes
2answers
34 views

Custom PHP-coding in MU installs

I have a WPMU install with a couple of sites on it. I'd like to add some subdirectories that are not wordpress blog pages but do contain working PHP code. They do not use any of wordpress's ...
1
vote
1answer
447 views

How to allow visitors to filter posts by multiple taxonomies

I am trying to allow users to filter a custom post type list by multiple taxonomies. For Example lets say my custom post type is clothing and it has two custom taxonomies brand and type associated ...
0
votes
1answer
83 views

How to include stylesheet in custom admin using parent_slug

Using this code from codex: function my_enqueue($hook) { if( 'edit.php' != $hook ) return; wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__) ); } add_action( ...
0
votes
1answer
125 views

Custom Query Arguments

I want to run a query base on the following $args. My question that how to pass variable number of arrays to tax_query as currently i have two arrays within tax_query it can be 1 , 3 or 5 and so on. ...
0
votes
1answer
515 views

custom walker to add iconfont to wp_nav_menu

I want to add the font awesome iconfont to my menu list items, so I need to make a custom Walker. Because the font per menu item will be different I was hoping to use the css class in the WP backend ...
0
votes
1answer
253 views

wp_mail - using a custom field value

Can this work? I want to send a email when a post is published to the recipient, that is called in custom field. EDIT I changed the code to another example I found. function ...
0
votes
1answer
88 views

How to keep a record of changes to a custom field?

I have a custom post type that hold real estate listings and I need to figure out a way to keep a record of the price of the property is listed for. For example a user lists a property for sale and ...
0
votes
1answer
407 views

Function to add custom HTML into head in custom post-type list page

How can I add custom HTML/PHP file into head where custom post-type list showing like this ? Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?
0
votes
1answer
639 views

Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?

Is wordpress capable of having hierarchical taxonomy and hierarchical custom post types in one permalink ? I would like to do the following: tax-1/tax-2/cpt-1/cpt-1-post/cpt-2/cpt-2-post/ in other ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
2answers
2k views

Theme Activation, Create Database Tables

I have been tasked with creating a theme that will be a base to list the site owners ebay store products. I have fleshed most of the project out in plain old php to get everything working as regards ...
1
vote
2answers
349 views

Author bio Social Links

I'm using simple code to show user social link in author bio. in functions.php <?php function add_remove_contactmethods( $contactmethods ) { // Add Twitter $contactmethods['twitter'] = ...
1
vote
0answers
59 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...
3
votes
1answer
492 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 ( ...
0
votes
2answers
5k views

Add Field to WordPress Register Form

How can I add a field to the WordPress Register form? For example, I want to add the "First Name" field in the users profile to the Register form, but I can't figure out how to do that. The field's ...
0
votes
1answer
357 views

Usage of custom post types in a custom admin menu

This question is a little hard to explain but i will try to be as clear as i can: I have a custom theme that i am presently working on, within this theme i have added a top level menu in wp-admin ...
1
vote
2answers
34 views

get author in blog posts?

What do I need to do in order to have the author name in the blog posts on my wordpress blog? currently when I view a post it doesn't have the author that wrote the post.
1
vote
1answer
27 views

How do I add a new template to my site

I am in the template editor for my WP site, and I want to upload a new file, but I can't find that option anywhere. I want to make a new php file for a custom portion of the site. Where can I find ...
0
votes
2answers
396 views

custom css and javascript not working on page defined as template?

I have written a web-page which is a web-app (a simple card database using php, mysql, and styled with css3). The page works as expected. A friend of mine proposed me to use wordpress for everything ...
4
votes
2answers
127 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 ...