0
votes
0answers
11 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
12 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
18 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
28 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
21 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
58 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
32 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
38 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
126 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
36 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
123 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
97 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
58 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
67 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
171 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
55 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
98 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
43 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
99 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
89 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
165 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
167 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
19 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
102 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
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 ...
0
votes
0answers
40 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
23 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
187 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
115 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
54 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
41 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
2answers
150 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
55 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
599 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
81 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
95 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
109 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
762 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
241 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
3k 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); ...
0
votes
1answer
247 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" - ...
2
votes
0answers
144 views

Is there any plan for WordPress to handle retina support for the site content? [closed]

I see from browsing Themeforest that there are many retina ( HD ready ) themes available; and WordPress itself has retina standard icons for the backend too; but what about the content, both future ...
0
votes
1answer
73 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
130 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
151 views

Disqus plugin outputs script as literal text

After installing the Disqus plugin, their JavaScript code started popping up as plain text on my site in several places. My hypothesis is that it pops up at the end of any loop involving the_post(). ...
0
votes
1answer
323 views

Use different single.php file based on condition

I am customizing my WordPress site's theme and i need to use a different single.php file based on the condition. Here is my user case, i need to design a competition page where i need to show entries ...
0
votes
1answer
118 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( ...