Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress.Use the tag to mark questions related to issues and bugs faced in the plugin or its improvement. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

the_posts hook, which set of posts?

I want to modify search results. Currently I hook to the_posts and check wp_query->is_search to determine if I am looking at the search results page. However, I noticed that the_posts is executed ...
John Lee's user avatar
0 votes
1 answer
369 views

How do I add php to all links automatically?

I'm using the Qtranslate plugin for my site. It's a pretty cool plugin and works great to a degree. I'm having a problem though when users add links to internal content in the WYSIWYG editor in that ...
Ciaran Gaffey's user avatar
6 votes
3 answers
6k views

Query Posts by Custom Field 'Price'

I'd like to display all posts within a given price range. For example: When a user inputs 100 and 1000 (in two separate form fields) - my site will display all posts that have a custom field called ...
Andrew Hendrie's user avatar
6 votes
1 answer
5k views

Admin menu as submenu from another plugin

I would like to add my new developed plugin's admin menu to an existing plugin as sub menu. Would be possible to do this? In my first plugin I initilize the menus as follows: function add_pages() { ...
fefe's user avatar
  • 874
0 votes
2 answers
7k views

How to reset the plugins without deactivate the plugin

function set_copyright_options() { delete_option('ptechsolcopy_notice'); delete_option('ptechsolcopy_reserved'); add_option('ptechsolcopy_notice','Copyright ©'); add_option('...
masterzoran's user avatar
-1 votes
1 answer
336 views

How to remove a class [closed]

Is it possible to remove classes from a plugin and add theme into to theme? I need to modify Woocommerce WP_Checkout class but I want to move it to my theme folder so if woocommerce will be updated ...
beitconsulting's user avatar
0 votes
1 answer
409 views

Expanding / Collapsing Modules in Wordpress Panel

I'm using WordPress 3.3.2. version. I can't able to expand / collapse modules in wordpress panel. I have deactivated all plugins and checked. But no result. If i disable Java Script, it is working ...
raghu's user avatar
  • 129
-1 votes
1 answer
3k views

Output dropdown results into Woocommerce Order details

How do I correctly get the data from a drop down (select) output into the Woocommerce Order Details section of the admin? When I do this, I get an output for all my text box questions, but nothing ...
user1419650's user avatar
0 votes
1 answer
3k views

check if a file in a plugin folder exists from a locale installation

I need to check if a file exist in my plugin dir: if (fileexists) { ... } else { ... } However, if in place of fileexists I use file_exists(WP_PLUGIN_DIR . "/myplugin/myfile.ext") it returns always ...
Toc's user avatar
  • 227
0 votes
1 answer
880 views

Get variable value based on string constant

In my plugin I define a constant as follows: define('DEFAULT_NUM', 5); I also define a constant representing the name by which I want to refer to this number: define('DEFAULT_NUM_NAME', 'numitems');...
JimmyPena's user avatar
  • 107
-1 votes
1 answer
3k views

WooCommerce custom query and paging: Not Found error

I'm experiencing a problem with the following piece code: global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $filter_args['paged'] = $paged; $filter_args['...
ZK_'s user avatar
  • 79
3 votes
1 answer
495 views

How is the WordPress.org plugin download history calculated?

I'm interested to know how the download history of plugins is calculated on WordPress.org. I'm noticing that one of my plugins is displaying a small percentage of users using a version which I haven'...
urok93's user avatar
  • 4,014
-1 votes
1 answer
2k views

Changing appearance of WooCommerce product layout [closed]

I'm new to WooCommerce and my products are currently being laid out with a thumbnail, product title, and price. Ideally I would like to have them horizontal, with a small excerpt to the right of the ...
kurzweilguy's user avatar
0 votes
1 answer
904 views

Widget where it can make changes to the container

Is it possible to create a widget where it can make changes to the container? An example is like this: <!--- widget-container ---> <div class="wdget"> <div class="...
bayuah's user avatar
  • 105
0 votes
1 answer
744 views

Structuring function with registration_errors hook

I created a plugin that adds a function to the registration process where the user info also gets added to an external db. The problem is that, when the function runs successfully i.e. user is able ...
MF1's user avatar
  • 285
1 vote
1 answer
1k views

Set featured image randomly from Wordpress Database on post submission

Basically every time that I publish a post I want that a random image from my wordpress database be set as the feature image for that post. Can someone help me with this please!
David Reis's user avatar
9 votes
6 answers
24k views

Enabling free shipping on Woo Commerce by specific items [closed]

I would like to know if it is possible to enable free shipping with Woo Commerce only if certain items (or items of certain categories / shipping classes) are included in the cart. The Free Shipping ...
James O'Neill's user avatar
-1 votes
1 answer
22 views

Duplicating wordpress install issue

I wonder if anyone could help me with a problem that I am having. I am having a guy do some plugin/theme customization on my wordpress site and he wants to have a duplicate of the site to work with on ...
user2143915's user avatar
3 votes
3 answers
1k views

Sidebar Generator issue [closed]

I hope this doesn't come across as very dumb (to some extend it is, however), but I am having a hard time dealing with the Sidebar Generator. In the description it is stated that "Now supports themes ...
Amroth's user avatar
  • 31
0 votes
2 answers
154 views

Disable plugin visibility at the plugin directory

Hello I have recently pushed my plugin's files to WordPress SVN trunk. Unfortunately, it's not a ready to use release. I don't want anybody accidentally download this half-baked 'release'. Can I ...
snowindy's user avatar
  • 101
4 votes
3 answers
36k views

wordpress get meta value by meta key

How to get the meta value by meta key I want to get the value by the meta key. This is what I have tried so far: $args = array( 'post_type' => 'post', 'post_status' => 'publish', ...
meWantToLearn's user avatar
3 votes
1 answer
381 views

How to create an edit media button for slideshow plugin?

I want to create an edit media button for my plugin, right now you can easily upload images using the WordPress 3.5 media uploader but I want the user to be able to edit the uploaded images, something ...
Vitor Argos's user avatar
0 votes
1 answer
4k views

Woocommerce - Print Product's Custom Field In Email

In Woocommerce 2.0, I need to print a custom field on the New Order email. It is a meta/custom field each product has named "longsku" (which is normally hidden.) This needs to be included in the ...
ELLE's user avatar
  • 11
0 votes
1 answer
501 views

WordPress ReAuth =1 Loop with wpCAS

The wpCAS plugin appears to be working: I have a subdomain on a website which contains the WordPress installation (i.e. test.mywebsite.com), and I'm running through a WordPress GitHub Repo along with ...
Jordan Thornquest's user avatar
1 vote
1 answer
266 views

Creating a plugin to sanitize comment and the url field before display only

I want to create a plugin to sanitize comment and mainly the url field before display only (not before adding to database), to filter the url fields and only allow displaying this field only if it ...
sharp12345's user avatar
2 votes
2 answers
176 views

'Easy Table' Plugin has float issues

Good day I am using the easy table plugin and I have a problem with floats with it: Any content I add below the table floats to the right of the table. Now I can solve this by using a <div style=...
DextrousDave's user avatar
21 votes
3 answers
2k views

How to enable suggested edits?

I like the idea of enabling any user of my website to suggest edits to a page. Much like the edit system on Stack Exchange but different in that anyone should be able to edit, not just registered ...
Patrick Klug's user avatar
0 votes
2 answers
1k views

How to create custom WooCommerce 2.0 templates

I'm working on a site for a client who is using version 2.0.1 of WooCommerce plugin and I'm lost as to how I can create new page templates for it. With previous versions of the plugin is was simple, ...
Dean Elliott's user avatar
  • 1,185
18 votes
3 answers
52k views

Hide prices and checkout functionality in woocommerce

I know this question might be too broad, but I'm looking for a bit of direction. My client has a woocommerce store with 30-40 products. For whatever reason they do not want to sell online anymore, ...
miles's user avatar
  • 339
1 vote
3 answers
595 views

Creating a plugin that will add options. Where should the options menu pages go?

I am creating a plugin for a restaurant theme that will provide a few options to add the restaurant hours of operation. Currently, I use a custom post type to control the restaurant hours but have ...
Jared's user avatar
  • 158
0 votes
1 answer
128 views

Plugin code will not work properly inside a class [closed]

I've written a simple bit of code (cobbled together from various tutorials around the web) that creates a simple meta-box (called 'Subheading') and removes the custom fields from the admin area. It ...
Nathan's user avatar
  • 15
0 votes
1 answer
164 views

WP e-commerce sales-view

I'm helping a client out who's running Wordpress E-commerce 3.8.3 on WP 3.2.1 In the "sales" view, (where it shows all orders), you can see ID Date/Time Name Amount Details Status (Delete) and Track-...
stefan's user avatar
  • 1
1 vote
2 answers
267 views

Best Practice: Remove data on deactivation or uninstall?

When is it appropriate to remove a plugin's settings? On deactivation or uninstall?
urok93's user avatar
  • 4,014
0 votes
1 answer
435 views

Plugin update, is a deactivation and activation done?

When a plugin is being updated via the automatic updater, is that plugin deactivated and then re activated when the plugin update is finished? Also is a maintenance file created during theme and ...
urok93's user avatar
  • 4,014
2 votes
1 answer
208 views

What is the purpose of $merged_filters?

Savvy WordPress user here, or at least trying to be. I have the hang of hooks and filters with the code in WP's plugin.php The only thing I cannot seem to understand is the $merged_filters global. ...
Sam Levin's user avatar
  • 131
9 votes
3 answers
24k views

How to declare WooCommerce support in your theme

I have built my own theme, which integrates quite well with WooCommerce, but I want to know how to properly get rid of the notification on top of my theme that said my theme didn't support WooCommerce ...
Ewout's user avatar
  • 2,641
0 votes
1 answer
193 views

Doing action based on input from options menu

This is my first time writing plugin. I have managed to get options menu with the html form: <?php add_action('admin_menu', 'menu'); function menu(){ add_options_page("poster","poster",'...
cikatomo's user avatar
  • 143
0 votes
1 answer
52 views

Update a WordPress website FROM Twitter or Facebook

I'm looking for a way to update a wordpress website when I post something to a specific twitter or facebook account. Is it possible? Is there any plugin that do this? I find only plugins that do the ...
stefano1's user avatar
  • 157
0 votes
1 answer
300 views

Images not showing and plugins not installing on wordpress server move

I have recently moved my wordpress site from localhost to an apache server with plesk. Upon doing this my images are not appearing on the website despite still being in the media folder (however I ...
user2143915's user avatar
0 votes
1 answer
1k views

Does the 'nav_menu_css_class' filter accept 2 or 3 arguments?

I've been using the nav_menu_css_class filter in one of my plugins, implemented as: add_filter( 'nav_menu_css_class', 'wbwcrf_nav_menu_css_class', 10, 3 ); function wbwcrf_nav_menu_css_class( $...
wickedbroccoli's user avatar
1 vote
0 answers
342 views

Filtering get_permalink in Jetpack / ShareDaddy

I recently changed my permalink structure from /YYYY/MM/%post_name%/ to /%post_name%/, and lost my tweet counts and likes (provided by Jetpack) in the process. To fix this, I want Jetpack to use the ...
DrRogg's user avatar
  • 11
4 votes
2 answers
93k views

WooCommerce - how to display product category above product? [closed]

I'm a newbie at modifying wooCommerce. I hope someone can help me with a problem i'm having while trying to make a minor change to the plugin to fit with a request from my client. I'm trying to ...
user28546's user avatar
0 votes
1 answer
946 views

Set domain level rel canonical with Yoast SEO [closed]

i have two single woocommerce installs (not multisite) that publish the same content (products etc). i want to add a cross domain level rel canonical to the second domain, such that - www.domain2.com/...
user1768787's user avatar
0 votes
2 answers
332 views

Top Contributors Plugin with Custom Post Type

I am using the plugin Top Contributors. That's very helpful for all blogs. But the problem with this plugin is: it is not integrated with custom post types. How could I extend the plugin to do that?
Micheal's user avatar
1 vote
0 answers
62 views

BbPress Register Page in Breadcrumbs

For some reason, the Forums Register page in bbpress plugin is appearing in the breadcrumb, take a look: http://putonthestand.com/forums/topic/let-the-dead-bury-the-dead/
Jesse's user avatar
  • 11
0 votes
1 answer
98 views

Facebook Feed Grabber Cache Relative to Dev Machine, not Server Install

One of our devs left last week and I inherited some tasks for one of his projects. I've never really worked with WordPress and I am not overly familiar with PHP (I am an app dev), so I am completely ...
Josh's user avatar
  • 101
5 votes
4 answers
6k views

Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader

I'm working on a plugin in which I do the following for autoloading classes: function TFSLAutoload($class) { $classfile = dirname(__FILE__).'/includes/'.strtolower($class).'.php'; include $...
tfrommen's user avatar
  • 9,211
0 votes
2 answers
80 views

I want to reset user's post meta after successfully login

I want to reset admin's meta value after login. It can be changed after login by admin via control panel, but I want to reset it after every login. I used this code but it's not working: function ...
Bimal Rekhadiya's user avatar
0 votes
2 answers
1k views

What are the Best Practises When Using AJAX in Plugin Development?

I am in the middle of creating a plugin and everything works fine with the AJAX calls but one question I can't seem to find the answer to is about best practise. I route the AJAX calls through /wp-...
martincarlin87's user avatar
1 vote
3 answers
4k views

Build a list of partners with Link, Logo and text

I want to build a list of partners. At the moment, I have tried with the "links" function, the problem is that I can't use html tags on the description field. Therefore I'm looking for another ...
otmezger's user avatar
  • 111

1
163 164
165
166 167
215