1
vote
2answers
36 views

Ways to have multiple front-page.php templates that can be swapped out?

I essentially want to create several different front-page.php templates with different loops and layouts and then present an option in the admin panel to select one template on one day and a different ...
-1
votes
0answers
13 views

WordPress Modify Refer a Friend page template [closed]

Currently I am working with this plugins : http://codecanyon.net/item/refer-a-friend-for-woocommerce/4983662 On documentation they said I need to use [tcraf-refer-page] as shortcode so the page will ...
0
votes
0answers
33 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
1
vote
1answer
35 views

How WordPress is able to change locale without using setlocale

In my plugin I print out the current locales via $originalLocales = explode(";", setlocale(LC_ALL, 0)); var_export($originalLocales);die; Obviously the result is same as the WPLANGdefined. ...
0
votes
2answers
34 views

Developer plugin to echo template names/filepaths [closed]

I am looking for a Wordpress plugin that prints file template names, maybe with a designating border. Magento has "template hints", as you can see in this screenshot: If there is not such a plugin ...
0
votes
0answers
34 views

Creating a custom page with certain categories and display relevant content [closed]

I don't really know how to explain it, but I want to create a page where I can display a certain number of categories on a page and display content on the right side. Something like this Im finding ...
0
votes
1answer
48 views

Ajax Call in page theme not working?

Ok, i am VERY new to wordpress (2 Hours new). I am creating a page template, which works fine, but this is the issue i am having: In the template.php file, i have this code: <script ...
0
votes
0answers
109 views

Multiple 'template_redirect' hooks or one hook?

I need to redirect multiple templates for my plugin. I use the action hook 'template_redirect' Codex and it works for my first redirect as expected. My question is: If I want to redirect a second ...
0
votes
2answers
29 views

Is there any hook for theme activation ? or something similar?

I know this has been asked before however my question is different. So. I have a plugin that creates custom post types on the fly. the plugin also has a function to create template files for each of ...
0
votes
1answer
312 views

reCAPTCHA on page template without plugin

I have a template for contact us page which includes a small form with few text fields. I want to add Recaptcha to avoid spams. I already use WP-recaptch plugin which only works for default ...
1
vote
0answers
308 views

Override a theme's WooCommerce template files with plugin [closed]

A plugin I'm working on, has it's own WooCommerce template files which override the default WooCommerce templates. I know I could make a child theme with a woocommerce folder but I'm trying to make ...
-1
votes
0answers
128 views

Jetpack Infinite Scroll on archive page

I know, lots of questions have been asked on this topic before, here and elsewhere — but I've spent the entire day working on this issue and scouring the Web for tips on how to use Jetpack's "Infinite ...
0
votes
1answer
22 views

How do I show content from a plugin using the template the site is currently working with?

I am trying to extend the first serious plugin that I am building. I'd like to be able to use it with different sites/templates. At the moment I designed a custom page that I included with the ...
0
votes
3answers
937 views

Woocommerce - Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]

I am importing affiliate products via XML into Woocommerce. Due to products having variations if I use the External/Affiliate product type I get repetition of product on my front end (eg. same product ...
0
votes
2answers
90 views

taxonomy_template filter do not loads custom taxonomy template properly

I'm using taxonomy_template filter in my plugin to load a template file for custom user taxonomies. This is the code I'm using add_filter( 'taxonomy_template', 'get_custom_taxonomy_template' ); ...
-1
votes
1answer
1k views

Woocommerce Show Single Product on Homepage

I am currently learning PHP & how to customize Wordpress. I have a shop that I set up on Wordpress using the Woocommerce plugin. The shop holds only a single item. Since I only have 1 item to ...
0
votes
0answers
24 views

WooCommerce using wrong template - how do I change it?

I use the Responsive Child Theme - and its parent - for my website. It seems that WooCommerce is using the content with sidebar template for the store and product pages. I think it will look better ...
0
votes
1answer
2k views

How to add a new product type on woocommerce product types? [closed]

I want to add a new custom "product type" to woocommerce plugin: Tried to duplicate one of currently exist product type files (woocommerce template structure) as a new file (file name and inside ...
0
votes
1answer
35 views

Is there any simple wordpress search template that works with existing searchforms?

I want to replace my theme's search functionality with new functionality that searches trough text widgets. Almost all content of my site is provided trough text widgets (they are static pages). Is ...
0
votes
0answers
64 views

Showing profile pages content in tabs

I've got my profile page setup which shows the users posts/comments in tabs beside each other i've added a achievement tab and would like to display the achievements users have earned. Here's the ...
0
votes
1answer
124 views

/wp-admin/post.php shows 404 template on submit

When I publish or save a post, I see the 404 error page from my template. This happens with posts and WooCommerce products. I'm using the Twenty Twelve theme, and I have the following plugins ...
0
votes
0answers
343 views

show Visual form builder in the front end

Iam anew in wordpress . i used this plugin http://wordpress.org/plugins/visual-form-builder/ to build custom pages then i tried to build a custom page called formbuilder.php to use it in the front end ...
0
votes
1answer
112 views

Fake Single Wordpress Post (Page) Loop

In a plugin, I am building a custom page with add_action('template_redirect', function(){ include(TEMPLATEPATH."/page.php"); exit(); }); add_filter('the_title', function(){ return "Virtual ...
0
votes
1answer
124 views

Fatal error: Call to undefined function the_ratings_results()

I was wondering if I rack your brains a bit on this one. I have a custom theme that has files in the theme folder but do not load as wp template files on the page settings. I also run EDD (easy ...
1
vote
2answers
3k views

Where is get_header('shop') file in Woocommerce templates

I need to modify the get_header('shop') file in Woocommerce but don't know where it's located, if someone knows please help me out - thanks!
0
votes
1answer
29 views

Prevent plug-in scripts on a specific template?

I have a plug-in which is interfering with my Google Map Embed in the template I'm using for my about page. Is there a way to prevent that plug-in from hooking in all of it's script files through ...
0
votes
2answers
69 views

changes to templates not showing on server

I have done some changes to woocommerce changes to its template in /MyTheme/woocommerce/templates, it shows fine on my localhost but when I upload the woocommerce to my server under my theme it ...
-1
votes
1answer
642 views

Template for custom post type shows all posts instead of just one

I wrote a simple plugin to create a custom post type named "people": add_action( 'init', 'create_person' ); function create_person() { register_post_type( 'people', array( ...
0
votes
1answer
99 views

Wordpress as template engine

i would like to use Wordpress as template engine in my custom bootstrap/zurb foundation sites. I found there's lot of custom styles included in wordpress articles by default. Are there any ways how ...
-1
votes
1answer
36 views

Wordpress show different custom post type

In wordpress I want two different types of custom post. In one section I want to post all the latest news and in other I want to use as blog. In latest news post type when I will make a news it should ...
1
vote
1answer
4k views

Show Woocommerce minicart widget in checkout page sidebar? And, how to make this update secure by overriding widget?

Before asking question here I want to tell that I have already asked the question in stackoverflow and wordpress forum but have not got any answer. So finally I came here. I have installed the ...
0
votes
1answer
71 views

Wordpress multisite haml templates

I'm building a very large Wordpress multisite at the moment and while I sort out the project at a top level I want to know if it's possible to use haml or phamlp for my templates instead of php. I ...
2
votes
1answer
227 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
3
votes
1answer
1k views

Displaying a WooCommerce product via PHP

Having a hard time composing a searchable query, so I apologize in advance if this has been covered. I know you can add WooCommerce products to a page or post via short code, but I have one section ...
3
votes
2answers
2k views

Pass PHP variable to javascript

Is there any possibility to pass some PHP variables in javascript so I can use them later? Only in single.php. I heard about wp_enqueue_scripts but with that it is neccesary to declare a path to a JS ...
0
votes
1answer
119 views

How to use get_template part in the plugin?

I was using the entire template in the plugin, but I would like to use get template part, so that I can reuse the header and footer in the original template. The code is like this: add_filter( ...
0
votes
1answer
36 views

How to make plugin work in each template in wordpress

I am new to plugin development .I want to get all images of a particular page/post and want to show them as slideshow below the page ..Currently i am able to gather all images in media library and ...
-1
votes
1answer
319 views

Display HTML5 jQuery Audio Player On Front Page

I would like to display the plugin HTML5 jQuery Audio Player 'centered' on the front page of my site. The plugin comes with shortcodes for posts and pages but my front(home page) only works with the ...
0
votes
1answer
3k views

How is WooCommerce cart.php template supposed to be used?

I have a fresh install of Wordpress 3.5 and WooCommerce 1.6.6 (WC from now on) and use the default Twenty Twelve theme. I added a Product to WC and when viewing that product and using the Debug Bar ...
0
votes
1answer
105 views

How can I use a file in my plugin as a replacement for single.php on custom-post-type query?

I am creating a Custom Post Type using a custom plugin. One of the requirement of the custom post type is to be presented in a table layout for print / email purpose. It seems that the logical ...
1
vote
2answers
463 views

do_shortcode() doesn't work if shortcode contained in variable, works if shortcode passed as string

I'm developing a plugin, wherein one of the features is to switch out forms on a specific page by changing the shortcode within a custom field. within my plugin file: function getShort() { ...
2
votes
2answers
207 views

How do I make a wordpress plugin with menu item etc

I've been reading documents, viewing videos, etc. on how to create a Wordpress plugin. I've learned how to filter a post, add txt to a post, use conditionals to see if the page is a single post as not ...
0
votes
1answer
79 views

Pull comments from one page/post into another page/post?

I am creating a facebook app via wordpress but some how need to pull the comments off my homepage and insert them onto another page, essentially what I am trying to do is duplicate the homepage with a ...
3
votes
1answer
2k views

Is it possible to define a template for a custom post type within a plugin independent of the active theme?

I'm writing a plugin to manage data about open-source projects. I developed an object model and have successfully created all custom post types and taxonomies, as well as implemented the correct ...
-1
votes
1answer
4k views

How did you incorporate WooCommerce in your own WordPress theme?

This has most probably been asked before, but I really need to show WooCommerce products in my template, but I don't know what hooks to add where. It's my first time working with WooCommerce. Can ...
0
votes
1answer
355 views

Default taxonomy template in plugin, override in theme

Building off of this question/answer, I've sucessfully implemented the single view for my custom post types, but I'd also like to offer the same thing for taxonomies. I've looked through the docs and ...
2
votes
1answer
934 views

Custom Taxonomy in plugin and template

I have a plugin that I am developing that is using custom post types and taxonomies. My question is this. How can I load the content/theme data from my plugin on to the page when the go to the custom ...
1
vote
1answer
83 views

Template plugin for blog posts? [closed]

can someone recommend a plugin to do the following? My wordpress CMS has two types of users: administrator and editor, both of whom are not technologically savvy, so they need things to be super ...
-1
votes
1answer
2k views

Make a Custom template for a specific category in wordpress

I am having issue with a custom category template. I want to create a new template for my specific category "VIDEOS" so that all posts under this category show in new style. Basically, i want to show ...
0
votes
2answers
1k views

Multiple Post Thumbnails Plugin - Need help with code

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries. I would be grateful if you could see if the code is right. Code in ...