Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress. 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
-1
votes
4answers
20k views

Is there any multiple filter/criteria plugin for wordpress? [closed]

I'm interested in a wordpress plug-in that is able to make from tags or categories multiple search criteria like left hand side of the following site system http://www.olx.com/dvd-cat-238 When one of ...
11
votes
3answers
41k views

How do I get WooCommerce to automatically recreate pages? [closed]

I had to uninstall WooCommerce plugin (I deleted the tables it created as well) and now I reinstalled the plugin and I doesn't automatically recreate the WooCommerce Pages. Am I stuck having to ...
9
votes
4answers
11k views

How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?

One of my Wordpress themes requires a few third party plugins to run correctly. Most of the times I used to call functions from third party plugins using conditional statements like if(...
8
votes
1answer
6k views

How to safely sanitize a textarea which takes full HTML input

I'm developing a plugin which enables the user to send HTML emails from within the WordPress admin. How should I sanitize the textarea input? It has to be able to contain the whole range of HTML tags ...
6
votes
2answers
258 views

Creating Unique Post URLs for A/B Testing… Is this even possible?

I want to create a WordPress plugin that allows me to do A/B testing for WordPress standard posts, but I can't use the Shrimptest plugin because I need a spin: Since I'm ultimately testing ...
6
votes
4answers
6k views

Plugin to restrict non-admin user to existing tags

Is there a plugin that would restrict non-admin users to only existing tags? I could have used categories for this, but it will be difficult to display with a large population (~1000) of tags.
6
votes
4answers
15k views

How to delete all records from or empty a custom database table?

I can't seem to find a simple reliable way to do this - perhaps?: // delete row ## global $wpdb; $delete = $wpdb->query( $wpdb->prepare( "DELETE * FROM `wp_table_name`" ) ); ...
6
votes
2answers
27k views

How to roll back a WordPress plugin update?

Yesterday I updated WordPress SEO by Yoast to version 1.2.8.4 from version 1.2.7 and now my admin panel is messed up. I searched through the support forum but the plugin author has not replied to the ...
5
votes
1answer
4k views

List of all existing Wordpress plugins

Is there a place from where I can get a list of all existing Wordpress plugins located in http://wordpress.org/extend/plugins/ I am trying to test my website for vulnerabilities and need such list. ...
5
votes
3answers
3k views

Prevent trash/delete action on specific post types

Edit: In a plugin I am developing, I need to store payments, IPN and transactions for customers in both frontend and backend. However I am concerned that the admin will use his actions power to ...
5
votes
5answers
11k views

Adding onload to body

I'm currently trying to develop a plugin that will embed a Google Earth Tour into a WP post / page via a shortcode. The issue I am running into is that for the tour to load, I have to add an onload="...
5
votes
1answer
138 views

Reordering themes in admin panel

I've been searching for a hook to change the order in which themes are displayed in the admin panel (i.e. wp-admin/themes.php) but so far haven't been successful. Is there an existing hook to do this,...
5
votes
4answers
1k views

Remove WordPress Toolbar buttons

Is there anyway to remove the 'W' icon from the WordPress toolbar located at the top, when Authors login? I know that an author can uncheck an option for an individual user, but we need to do this ...
4
votes
1answer
511 views

How Does Wordpress Uninclude/Deactivate A Plugin?

Wordpress uses the Observer Pattern for its plugin system and operates on the premise of checking if a plugin is activated, scanning the plugins directory and storing everything in an array in the ...
4
votes
2answers
4k views

Searching users with WP_List_Table plugin

I am trying to devlope a plugin that will search and return my users so I can edit some other metatdata that belongs to them. I have been using the plug-in listed on the Codex as my starting point. I ...
4
votes
3answers
11k views

When do I need to use esc_attr when using WordPress internal functions

When I am putting a WordPress value inside the attribute tag, for example, the following method does not need esc_attr e.g. // JS code alert('<?php echo get_bloginfo('name');?>'); the ...
4
votes
1answer
4k views

Update my custom WordPress Plugin through my own server [duplicate]

I am working on a WordPress plugin that will be accessible only to a group of a few selected website owners. I have installed my plugin to those sites already. There is active development going on for ...
4
votes
1answer
9k views

Shortcode output appears before post body [duplicate]

Possible Duplicate: short code output too early How can I insert my plugin code via shortcode inside post body in exact position? The problem is that wp engine inserts the plugin code BEFORE ...
4
votes
1answer
191 views

Right approach for plugin output styling/template

I am creating a plugin that needs to output things on the front end of the site. I tried keeping the default look as clean as possible, but I'd also like to make it easy for the users to modify. My ...
4
votes
2answers
1k views

Get php var inside javascript file (making plugin)

I was making a plugin and I have a javascript file where I want to take some options saved in the database to show well the function. So I have this: function wp_home(){ wp_enqueue_script( '...
4
votes
2answers
15k views

Woocommerce product categories order [closed]

Is it possible to sort product categories? I have a category with a lot of subcategories. On the category page all the subcategories is listed. Right now I can only change the order by drag and drop ...
3
votes
1answer
2k views

How to enable edit button in the theme's customize UI?

I saw on WordPress.com's theme customizer has this little blue (with a pencil icon in it) edit icon, they are SUPER user friendly! But seems default wordpress.org installation does not have it! Is ...
3
votes
5answers
7k views

How to run Two Wordpress blogs with different themes and with single database and same content

How do you run two Wordpress blogs with different themes using one database where the content remains the same in both sites? The issue that I am getting is at the Domain mapping in both blogs.
3
votes
2answers
590 views

Custom database or Custom Post Types?

I have been searching throughout the web for the best way to implement what I need but just cannot find a best solution as there always seems to be some drawback. I'd prefer to do it right the first ...
3
votes
2answers
6k views

Change page title from plugin

Is possible to change page title on the fly from plugin? I've try global $post, but seem like plugin runs after. Any Ideas? Edit: Im writting some pages on the fly, based on same page / post, so ...
3
votes
2answers
3k views

Wordpress A-Z Navigation

I want to have a wordpress "A-Z" navigation menu like this site "http://www.sharephp.com/" Are there any plugin or a hack for wordpress to do this ?
3
votes
2answers
1k views

How to enable Admins to see Plugins

I am running a multisite network on the latest version of WP. I am the Super Admin. I setup a user as "Administrator" on a site in the network. The Admin User cannot see the plugins menu. I ...
3
votes
2answers
14k views

Adding unit ammount after WooCommerce price. Example $ 24 /m2 and $24 / m

So hey guys, I'm trying to get my WooCommerce price per unit done. Some of the items I'm selling are floortiles, and as of such they're sold per square metre. I have added the following code to ...
3
votes
2answers
12k views

Woocommerce - Hide “add to cart” on free products

im using Woocommerce and searching for a way to hide the "Add to cart"-Button on a single-Product page IF the product is for free - I'm making a big CSV-Import and some product-prices are set to zero -...
2
votes
1answer
5k views

login to wordpress with Get variables instead of Post

Im using swish-e to index my corporate site and documents. Problem is that i need to login to wordpress via get variables. Wordpress login uses post variable but i need to login with GET variables ...
2
votes
2answers
177 views

Can plugins become obsolete?

I presume WordPress plugins are made by third parties. Do plugins have to be kept up to date with WordPress upgrades? Can plugins become obsolete? If they do become obsolete, say with plugins for ...
2
votes
3answers
596 views

Search and replace text across all posts

I had used the ZD Video Plugin for WP a long time, and now, since my move to WP 3.0.2, it doesn't work anymore. To embed a YouTube video using the plugin, I would just write [zdvideo]url-of-youtube-...
2
votes
1answer
235 views

Can WordPress handle these functionalities?

I'm a front-end designer/developer whose weapon of choice for the back-end is WordPress. Up to this point all of my projects involving WordPress were fairly basic and it has handled everything ...
2
votes
1answer
443 views

Custom rewrite rule is not picked by Wordpress

I am trying to create a custom Rewrite URL something like function add_my_rule() { global $wp; $wp->add_query_var('state'); $wp->add_query_var('state_destination'); ...
2
votes
1answer
4k views

How to add meta box to plugin admin page?

There is the codes. add_action('admin_menu', 'test'); function test(){ add_menu_page( 'Test plugin', 'Test plugin', 'manage_options', 'test_plugin_options', 'test_plugin_admin_options' ); }...
2
votes
1answer
393 views

Show list of loaded php files from plugins

So currently I have the following code and it shows me a list of all the php files loaded from the theme. So how can I edit this to show either all php files or just the plugin ones? functions.php ...
2
votes
1answer
5k views

fatal error get_page_permastruct()

I'm getting the following error Fatal error: Call to a member function get_page_permastruct() /link-template.php on line 276 when I invoke the in class constructor the wp_insert_post($new_post);. ...
2
votes
1answer
325 views

Validation Function for URL in plugin

if ( cpmb_is_valid_mp3( $_FILES['video-url']['name'] ) ) { $response = wp_upload_bits( $_FILES['video-url']['name'], null, file_get_contents( $_FILES['video-url']['tmp_name'] ) ); ...
2
votes
2answers
24k views

How can I customize the wp_list_categories

I have a list of categories in woo-commerce which I'm trying to customize to be displayed to look like the following image. I created the above image using normal HTML and css however I would like to ...
2
votes
2answers
745 views

Adding callback function for wp_ajax_ has no effect

I was trying to add one more callback function to the WordPress AJAX action woocommerce_apply_coupon. This action is defined in the WooCommerce plugin, I want to add my own callback function to this ...
2
votes
2answers
29k views

Get the current taxonomy product category title in woocommerce

I am wanting to show the current taxonomy product category title in the single product page. The code below works, but returns all product categories. I need some help singling out the current ...
2
votes
1answer
3k views

Date query for a custom meta field

I would like to use something similar to the following date_query but I would like to use some custom meta fields instead of the existing post columns. For example instead of post_date_gmt I would ...
2
votes
2answers
27k views

How to display variable prices by default in woocommerce?

I would like to display the variable price by default in the "from price tab" in the single product page. and not have the from price. Its confusing to the shopper to see a "from" price then below it ...
2
votes
5answers
145 views

Should I add sharing buttons using a plugin or directly in my theme files?

This question relates to plugins for Linkedin Share buttons, Twitter Tweet buttons, and Facebook Like buttons. These are for blog posts on a WordPress blog which is at a subdomain of a site that is ...
2
votes
2answers
7k views

How can I delete options with register_uninstall_hook?

Right now, I have this code: function mr_np_activate(){ // hook uninstall if ( function_exists('register_uninstall_hook') ) register_uninstall_hook(__FILE__,'mr_np_uninstall'); ...
2
votes
2answers
2k views

Add custom meta box on Post page

I want add a new settings box on the Post page. I'd like to be under the category or above, like so:
1
vote
3answers
2k views

Separating Search Results By Post Type

Original question: Seperating Custom Post Search Results I've tried to implement this code to my website, but i have some problem with it. What i've changed is i've added another switch for third ...
1
vote
2answers
4k views

Creating Custom Meta Boxes on Plugin Option Page

Right in my main plugin file, wp-email-capture.php I am calling this:- add_action( 'admin_init', 'wp_email_capture_add_custom_boxes'); This calls this function:- function ...
1
vote
1answer
3k views

Visual Composer vs. Advanced Custom Fields [closed]

I use Advanced Custom Fields (ACF) for all my webpages. Using ACF I think I can create a super easy and simple backend with all the fields the customer needs. Now a boss asked me why we aren't using ...
1
vote
1answer
334 views

Remote plugin activation hook

I am remote activating plugins using update_option('active_plugins,'some_plugins'); It works fine except one thing: if some plugins have to create some tables using register_activation_hook(__FILE__,'...