-1
votes
0answers
14 views

additional information and reviews tabs not working in woocommerce [closed]

i created a wordpress theme and recently i installed woocommerce 2.1.7 . when i activated it every thing works well but additional information and reviews tabs in single product page not working well ...
0
votes
1answer
26 views

How to replace settings in WordPress plugin from a theme

I created an array with some default settings in a plugin, and want to allow it to be replaced from functions.php in a theme without using stored data (eg. add_option). I want this to be just a hook ...
0
votes
1answer
21 views

Remember the meta value with radio buttons

I've created a simple meta box consisting of two radio buttons: yes or no. When they click on the appropriate box, it saves the meta value to the database. However, the post page does not remember it ...
0
votes
1answer
27 views

WP Plugin Running before jQuery

Can somebody please take a look at this, I'm really getting frustrated with it. I'm having problems with jquery and a plugin. I've setup a WP theme here if you would like to preview. I've also got ...
0
votes
0answers
42 views

How to show post attachment image

i am going to create a slidershow by post attachment in single.php. i use this code but the result is null. <?php if ( have_posts() ) while ( have_posts() ): the_post(); ...
0
votes
0answers
20 views

problem with blank page

i have a real big problem with my wordpress website functions.php when i put the following code to achive post view and thumbnail. i'm getting the blank page error which when i publish or update a ...
0
votes
1answer
37 views

Add new user and add meta at once

I am working on a custom sign up proces where a user first fills in his name and email, then receives an activation e-mail and then the sign up proces continues. The e-mail contains an activation ...
0
votes
1answer
28 views

Save temporary registration data

I am working on a custom signup proces, where user first sign up with their name and email and after that they gonna add their company (a post in post type 'companies'). After they have signed up ...
1
vote
0answers
41 views

Plugin templates vs Parent Theme

I've been building a plugin using a WooCommerce like template system, where the plugin houses the default templates, but allows for overriding via a template folder in your active theme. It just ...
0
votes
2answers
22 views

Template directory in plugin

I have a custom dashboard plugin with one of the sections containing useful links. One of them should directly point to the documentation that comes with a template. This documentation is in the ...
1
vote
0answers
33 views

Selectively update themes in WordPress multisite

I have been running a WordPress multisite installation for a few years, and every time WordPress releases an update (from x.y.z to x.y or x.y.z to x.y.z) there is always a chance that one of the ...
0
votes
0answers
31 views

Customized Upload File Control not saving the files URL as value

I have modified a customized version of the Upload File control so that I could upload mp4 videos and use the media library. The control seems to be saving the videos as 'Array'. After uploading a ...
0
votes
2answers
90 views

WP_LOCALIZE_SCRIPT doesn't work

I am creating AJAX loading and need to use WP_LOCALIZE_SCRIPT but cannot make it work. Here is my code. I place it in functions.php wp_enqueue_script( 'page_data'); $gallery_js_data_array = array( ...
-1
votes
2answers
637 views

How to Add Font Awesome Icons to WordPress Menus?

How to Add Font Awesome Icons to WordPress Menus
0
votes
0answers
28 views

Can anyone tell me why I can't edit a plugin when it is installed without having to re-install?

I am using a shortcode plugin as a framework for the short codes I want to add that go with my theme. I decided to just include the plugin in a repo for the user to dl so I am not building theme right ...
-3
votes
1answer
48 views

Need some hints for my own WP theme development

After taking some online tutorials I am willing to create my own custom theme for my myself. This is going to be an online Contact Lense store! So far I have learned how to generate and use Custom ...
0
votes
2answers
158 views

How to Add a .js file Only in one specific Page Dynamically to Head

I need to add some scrips for Google Maps only in my contact page and I do not want to populate it on all pages. I am not willing to create a custom header as well so I was thinking is there any way ...
0
votes
0answers
44 views

Meta Box Not Showing up in The Admin Page

Using WordPress 3.7.1 and PHP 5.4.12 I am trying to add a Meta box - text field to my Custom Post Type. My custom Post Type name is "news" and this is my code: <?php /* Custom Meta Boxex */ ...
0
votes
2answers
158 views

How to check if a stylesheet is already loaded?

I was wondering how to check if a css file is already loaded. For example, I have in my theme Font Awesome font-awesome.min.css and I have a plugin that make use of Font Awesome too. So, I ended up ...
0
votes
1answer
26 views

Cant' Grab WordPress Built-in Posts Through Loop

Using WordPress 3.7.1 I am trying to display all Regular Post on my created page lest say TestPage. Here are the steps I took to do this: 1- Generate a Custom Page Template called:Test Page and ...
0
votes
0answers
89 views

How to Display Custom Post Type's Gallery (images ) in Through WP_Query

I am trying to load an Image Slider images from a Custom Post Type image Gallery Feature. For example let say I have an Custom Post Type called banner which I can load images to it's Gallery and I ...
0
votes
3answers
68 views

How to Register/Link to .js Files in WordPress Dynamicaly in Header.php

Can you please let me know how I can dynamically register/link to my js files in wordpress? I have two js files as below code but I do not know how to map to them uring the bloginfo() as it is taking ...
1
vote
0answers
86 views

WordPress deployment strategy: Dealing with dependencies [closed]

The main question is: How do you deploy your WordPress sites, taking into account dependency management and database migrations? Details I've been reading around this issue both on Stack Exchange ...
0
votes
0answers
18 views

grouping my widgets wordpress

In the widgets page, there are two boxes "Available Widgets" and "Inactive Widgets". How can I add a new boxe with my custom name where I can group all my widgets.
0
votes
1answer
44 views

Toolbar Hidden in a Virtual Page

I am trying to create a virtual page, but my admin toolbar is not showing up. This is how I am creating the virtual page: functions.php add_action('init', function() { ...
0
votes
2answers
70 views

Display Data's metabox in page

I created a metabox has a textarea in page admin, So after validating the data is saved, but it's not displayed in the page (theme) I hope I explain well my problem. here is my code : <?php ...
0
votes
1answer
30 views

my own SVN for a plugin/theme

If I develop a theme or plugin and don't submit it to the wordpress plugin repository is it possible to have my own SVN to roll out updates? How is this done?
10
votes
2answers
329 views

Single functions.php or split into many small files?

I am creating a simple framework with theme options. I have divided chunks of code within functions.php and placed it within a specific folder structure. Now in my main functions.php file, I only ...
0
votes
0answers
74 views

What is the Object for WP_Error Class?

i want to know what is the object for WP_Error Class located in wp-includes/class-wp-error.php because i used a custom registration form plugin in there for validation i used this below function ...
0
votes
1answer
176 views

Issue on Setting $icon_url Parameter on WP add_menu_page()

I am trying to create a custom Menu by using the WordPress add_menu_page() function. I think I understand the whole function parameters as Codex point it out as: <?php add_menu_page( ...
0
votes
1answer
58 views

How to remove/replace current page template?

I am writing a plug-in that creates new front/home page from scratch. Below code works nice and it outputs the text before the themes outputs anything. So the question is how can I remove the theme ...
0
votes
1answer
53 views

Updating Style From WP Options Setting Page

Can you please let me know how I can set a function to update change the style like any CSS class from the setting option page? For example I have some <P> elements with a class name .impo. Now, ...
0
votes
1answer
427 views

How to create custom home page via plugin?

I want to code a plug-in that creates new custom home page. Note that I have never coded any plug-in before. 1) After activation of plug-in user needs to go to the options of the plug-in and set up ...
0
votes
1answer
22 views

Active Plugins for current blog in WP Multisite Network? [duplicate]

Simple question but I can't find an answer - how do I find whether the current blog in a multisite network has a given plugin activated (speaking about plugins that are available to all sites on the ...
0
votes
1answer
46 views

Wordpress dynamic widget by location?

i need to show the widget based on user location , for a testing purpose i have created the by using following code if( function_exists( 'register_sidebar' ) ) register_sidebar( array( ...
0
votes
1answer
89 views

How do you create a re-useable HTML fragment in wordpress

Let's say you want all pages to have a common footer, and have that footer editable in WordPress; how would you accomplish this? My current solution is to create a page "footer" and include it using ...
0
votes
2answers
242 views

Ajax functions - no access to wp-admin.php only online

I'm having some trouble with my custom ajax function. I have this on my console log : "POST MYSITEURL/wp-admin/admin-ajax.php 302 Found". So my functions won't work... And I really don't understand ...
3
votes
1answer
113 views

Get file headers in custom file

in my one of my plugins i have modules (kind of like plugins in a plugin), is there a function like get_plugin_data() or wp_get_theme() that will allow me to get the header section of a custom file ...
0
votes
0answers
63 views

WP multisite network plugin fails to see classes loaded with spl autoload

I have a home-grown plugin that's a library of various classes/methods. Let's call it my_autoload. In WP single-site I've been using spl autoload to require() the classes as I have other plugins that ...
0
votes
1answer
217 views

How to make my plugin theme-independent?

I need a little help and/or consulting for my next steps. (I'm a beginner!) I've been working on my plugin, using a Custom Post Type "Project", some help from the plugin "Advanced Custom Fields" - ...
0
votes
1answer
69 views

Wordpress plugin with its own “site”/theme

I am currently starting a plugin development project and ideally I'd like the plugin to run using its own custom theme as if it was it's own separate thing. Is it possible to include a theme within ...
0
votes
1answer
107 views

Why is the Settings API is not saving my array of options

I am writing a set of classes to easily create options pages accessible via submenus of the standard WordPress menus and a way to easily create options for said menus. The way I am wiring it is via a ...
0
votes
1answer
57 views

Why enqueue styles on hook

Why do we need to enqueue styles on a hook, why not just enqueue them straight in like this? wp_enqueue_style( $handle, $src); the codex page gives an example of using a hook but doesn't explain ...
2
votes
1answer
619 views

add_filter and remove_filter added before and after wp_query

I have just started with WordPress Development, and found following block of code online (in some tutorial) function filter_where( $where = '' ) { // posts in the last 30 days $where .= " AND ...
0
votes
0answers
59 views

How to add demo content to theme from outside plugin

I am devloping a new Wordpress theme that requires the installation of an outside plugin, called Revolution Slider. I would like to create a set of demo slider images for the user upon theme ...
2
votes
1answer
100 views

Am I not understanding plugins?

So I am trying to make it so that you can load a class from a child theme, theme or plugin using the following: class AisisCore_Loader_AutoLoader{ protected static $_instance; protected ...
0
votes
1answer
183 views

WordPress Page Reload Takes forever during theme development

OK, I'm hacking my way through my first theme (while reading Prof. WP Design & Development 2nd Ed.) and .... EVERY TIME I change -for example- a p tag or a div tag or a css rule, when I then go ...
0
votes
2answers
4k views

Custom user profile, registration, login page with theme

WordPress user profile page uses the administration interface, and its user registration / login page is not part of the theme. I would like to change it into the custom theme of my site customize ...
2
votes
1answer
49 views

Where to put archive-{post-type}.php

I have a plugin that adds a custom post type for a website I'm building. I am using the_content filters to change how a singular page looks, and it works great, allowing me to keep everything ...
0
votes
1answer
91 views

Widget HTML Display Problem

Hi I have created a plugin that places a Google Translator into a text widget in Wordpress. I have setup shortcode to do this - and the shortcode seems to be outputting the correct HTML, except that ...