-1
votes
0answers
21 views

Cannot access to wp_query for custom query

On a custom page template, I run a custom query to get posts, here it is: $wp_query = new WP_Query( $args ); if ( $wp_query -> have_posts() ) : while ( $wp_query -> have_posts() ) : ...
0
votes
0answers
16 views

theme_mod and option type in WP_Customize_Manager's add setting API

The WP_Customize_Manager's add setting API support the type argument: type Optional. Specifies the TYPE of setting this is. Options are 'option' or 'theme_mod' (defaults to 'theme_mod') What is the ...
0
votes
1answer
11 views

Is there a way to include files in your theme to over write aplugin files? [closed]

Is there a way to include files in your theme to overwrite aplugin files? I am using a slider but am wanting to change the images the plugin uses and at the moment i am over writing the files in the ...
0
votes
0answers
14 views

Allow to user select template only once

i want to give the user option to select template one time in multisites. way that can help me is to allow the user select the template once the user first login to the system. if you know how can i ...
1
vote
1answer
47 views

Js file is not adding using this code in functions.php

Sorry i am noob in WordPress. I am using following code in functions.php to add the .js file in wordpress. function your_function_name() { wp_localize_script( 'function', 'my_ajax_script', array( ...
0
votes
1answer
51 views

How to include plugin without activation?

I need to include plugin in my WordPress theme without plugin activation. I have these lines: include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php'; include( ...
3
votes
1answer
50 views

Translate third party plugin and save translation files in custom theme

I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins ...
0
votes
0answers
22 views

Adding Page/Post Attachment Capability to the Media Edit Screen

Is there a way to add the page attachment capability to the edit media screen? So if I add/edit a media item, I can also attach/re-attach it to a page.
0
votes
0answers
37 views

WP load posts by ajax, count and update every time

I have used Ajax load more plugin to load my posts. I also need to display the total post count and update it after every time post load and append to the list. Can anyone give me any idea about ...
0
votes
0answers
20 views

Combining the Edit Media Screen with the Links Manager?

Is there a way to somehow integrate the link manager into the media edit screen? So if a user uploads or replaces a media item, they can also add the media's attachment link to a link category from ...
0
votes
0answers
43 views

wp_footer hook only working on homepage not in other pages

I try to output a javascript code in wp_footer hook but it is not printed in all pages it is working in home page only. I have checked for the presence of wp_footer(); function in footer.php it is ...
0
votes
1answer
24 views

Don't load the theme for a page FROM a plugin EDITED

I'm developing a pseudo admin area for my client and they don't want the theme overlaid on it, rather have their admin area take up 100% of the page. Normally I would add if (!is_page($id)) and be ...
0
votes
1answer
59 views

How can I show a different theme for admin users? WP 3.8+

I've been searching around for a long while now. There seem to be plugins available for this, but hardly anything that is current. Many of the plugins I have already tried do not work correctly with ...
0
votes
1answer
43 views

Extending a theme: build new features as plugin or core modules?

I have developed my own WordPress theme based on the Roots starter theme. Because of my clients needs, I'm often required to develop custom features (what I refer to as "modules") that are added to ...
0
votes
1answer
43 views

Replace all media (images)

I created a new theme for my Wordpress site and I need to replace all the media (images) on the site, since I am using all new image sizes (which are larger than the largest on my current site). 98% ...
0
votes
1answer
196 views

Why is contact form not working?

I am using a custom contact form plugin from code.tutsplus but it is not working. It looks as if the form is sent because I get the confirmation badge, although I receive no email (I have tried ...
0
votes
1answer
42 views

Directory structure for plugin changes

When I'm working in Wordpress, I quite often need to make adjustments to plugins. The recommended method, as I understand it, is to take the plugin file I'd like to modify (say, mypluginfile.php), and ...
-1
votes
1answer
166 views

Hardcode a form in Contact Form 7 [closed]

I've been digging a little into Contact Form 7 source code without success, but I was wondering if, like in Advanced Custom Fields, it's possible to hardcode a complete form (fields, recipients and ...
1
vote
1answer
138 views

Why does my functions.php cause white-screen and media-library issues?

Overview: I was authoring a child-theme, and realized that functions.php was causing problems with the media-library and caused a "white-screen" to appear after editing a post. I fixed the issue by ...
0
votes
1answer
80 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
0answers
72 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(); ...
2
votes
2answers
250 views

How can I position ShareThis buttons manually when using the plug-in?

In developing custom themes I have clients who want to use ShareThis for their social media. ShareThis offers a plug-in with a control panel that lets the client manage the buttons, style, etc. the ...
1
vote
1answer
61 views

How to make a slideshow shortcode based on the Wordpress gallery shortcode? [closed]

This is the wordpress function for the gallery shortcode, i would like to understand how this works so i can implement a slideshow shortcode and adding the img id only as gallery shortcode does. ...
-1
votes
1answer
109 views

Javascript as Jquery Function Call?

Refer to Nice scroll to wordpress wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call var seq = 0; ...
0
votes
0answers
49 views

Wordpress javascript call functions?

wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call $(document).ready( function($) { $("html").niceScroll(); } ); ...
0
votes
2answers
109 views

Check javascript file Proper way in functions.php

I am trying to convert html to wordpress. The code in the html was: <script src="js/jquery.nicescroll.min.js"></script> <script src="js/jquery.js"></script> ( jQuery v1.7.2 ) ...
0
votes
0answers
96 views

Masonry and infinite scroll child theme

I have a question about masonry and infinite scroll plugin by Jetpack. I've added in my function.php file this code: function mason_script() { wp_enqueue_script( 'jquery-masonry' );} add_action( ...
0
votes
0answers
197 views

Infinite scroll not working with Masonry

I've got masonry working, like so: $('.content').imagesLoaded( function() { $('.wrapper, .content').fadeIn(600); $('.index-page .content').masonry({ itemSelector: '.post', ...
1
vote
2answers
1k views

How to access options of Redux framework in front end

I'm creating a wordpress theme in which I'm using the Redux Framework for creating the theme's options page. Now I believe everything is well set up but I'm having trouble in getting the values ...
0
votes
1answer
212 views

how to design change in woocommerce cart page and all other page also by theme? [closed]

I want to change all woocommerce pages design change as per my theme template so what can i do .
0
votes
0answers
20 views

disable menu theme

How can I not display navigation menu in wordpress! I want to display navigation menus based upon the language user has selected. but there primary navigation is always being displayed! How can I ...
0
votes
2answers
127 views

multiple language website navigation menu suggestion

I have completed a single page wordpress theme. I have to add the feature of multiple languages to it. So what I have decided is to make the user create a page such as about-gr Which gr stands for ...
0
votes
0answers
29 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 ...
0
votes
0answers
42 views

wordpress can't upload plugin

I can not upload the plugin through the admin or cpanel. I am trying to work in localhost. I am getting the following error Unpacking the packageā€¦ Could not copy file. ...
0
votes
0answers
24 views

custom processing for posts

Although I'm very well aware of PHP, but I'm kind of new to WordPress. So I created this WordPress site, but there's a bunch of posts that I want them to include some PHP and JavaScript and HTML ...
1
vote
0answers
203 views

Adding Custom Product Attribute and Variable in WooCommerce Programatically

Can you please let me know how I can add Custom Product Attribute and Variable in WooCommerce Programatically? I know this easy to be done in Woocommerce GUI but I need to do this through ...
2
votes
1answer
137 views

register_theme_directory somehow “fails” when folder is outside of WP-Folder

This is a simple skeleton for WordPress, that makes it possible to have just "themes" and "plugins" under version control: https://github.com/sourcerer-mike/WordPress-GIT-Skeleton When doing ...
0
votes
1answer
59 views

Author profile comments system

I have a custom PHP file to get all the users/authors from the DB in WP, so it's all showing correctly and working BUT, I want to make the comment to work properly, what i did now is: <?php ...
0
votes
0answers
44 views

Disabling All in One Seo Pack plugin in functions.php does not work

Here is my code: function my_title($title) { global $aiosp; if ( defined('AIOSEOP_VERSION') ) { error_log( print_r( $aiosp, true) ); remove_action('wp_head',array($aiosp,'wp_head')); ...
0
votes
1answer
156 views

Adding Woocommerce to my own theme, how do I do it?

After searching and trying for days, I'm starting to get agitated.. I have a custom theme for Wordpress, wich seems to function OK. But after installing Woocommerce several widget don't work, such as ...
1
vote
1answer
59 views

how to give a user a role?

How possible give a user the 'adminstrator' role? for example I made a user with wp_insert_user(array(..., 'role' => 'Administrator') but it doesn't effect on role of user. thanks.
1
vote
2answers
686 views

WooCommerce: VAT on grouped products

I'm new to WooCommerce and I have the problem that grouped products always show the default VAT because I can't change the tax setting on the grouped products. The simple products combined by the ...
0
votes
0answers
85 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
109 views

display unique post per category

On home page i need to display few post from different categories and here are some of the issues i have Any posts can belongs to any number of categories. this is how i am planning to do it ...
0
votes
1answer
26 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
120 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 ...
1
vote
2answers
903 views

Automatically install wordpress plugin at theme activation

I'm looking into using http://tgmpluginactivation.com/ to activate required plugins for my custom theme during the theme activation step. From what I can tell, this class only Activates plugins ...
0
votes
1answer
305 views

woocommerce breadcrump missing shop link

I have a WordPress site that uses courtur theme with woocommerce I didn't install the site so i'm not sure if it was configured correctly. my URL structure for product-category page as follow: ...
1
vote
1answer
4k views

How do I cleanly override a plugin's CSS with a child theme?

folks! I have taken it upon myself to adhere to WordPress conventions so I can have a clean, sexy child theme. However, I am unsure how to proceed on a certain issue. I would like to override the ...
0
votes
1answer
69 views

How to multiply a post to test internal search results?

I'm using two ways to do my search. One, located in search.php: <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); ...