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.

learn more… | top users | synonyms (2)

0
votes
1answer
38 views

Custom widget doesn't save values from dropdown box

I am trying to save the value from a dropdown box on a custom widget created by me. the title from the same widget is getting saved, but not the values from drop down box. Can someone please help me? ...
1
vote
2answers
347 views

add action for displaying posts using a shortcode

I'm developing a simple plugin for letting a user insert a post from the frontend. I have a shortcode [add-post] which a user can put on any page, say, for eg. My Wall Page Now on My Wall Page a ...
3
votes
2answers
435 views

Sidebar Generator issue

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 ...
0
votes
2answers
328 views

Add a file upload field

I am building a plugin which has a file upload field in it's settings page. The files should not be image files but should be .doc, .txt etc. Struggling with the code for it. Any help would be greatly ...
2
votes
3answers
6k views

How to check if the product is in a certain category on a single-product.php in Woocommerce?

How in the world can I check if a product is in a certain product category on the single-product.php? <?php if (is_product_category('audio')) { echo 'In audio'; ...
0
votes
1answer
372 views

Unable to add TAB character to post?

I am using the CodeColorer plugin to display source code in my WordPress. I am trying to have my code indented so that it displays properly on the website. However, when I try to add the following ...
0
votes
0answers
19 views

Custom on the fly e-mail alerts

Is there a way where users can opt-in for ‘random keywords’ that match their interests? The user can just enter any keyword they want in a search box and hit enter. After that the user will be ...
0
votes
1answer
36 views

Use external link in the add sub menu

I want to show the data in the external plugins.php file. the below url path is correct but its not showing the file data. Whats the problem? add_submenu_page( 'antify', 'Plugins', 'Plugins', ...
0
votes
1answer
46 views

Plugin program: JQuery not working in this plugin

I have been writing a plugin but wanted to add some features to the plugin In this program down JQuery is not working please help me My requirements are check this URL: codelisense.com/wp/about ...
0
votes
1answer
37 views

use function inside another function in WP Plugin

I write a php code that read text file and it is working fine with no problem , have a look at this code. <?php function Read($filepath) { $myfile = fopen($filepath,"r") or die("Unable to open ...
0
votes
1answer
396 views

add category name to permalinks on product page /category-name/product-name

I'm trying to reconfigure the permalinks used in WooCommerce such that the following format will be displayed: homesite/category/product. Right now, the permalinks only shows under a category page: ...
1
vote
1answer
23 views

How create Group Blogs based on user created Groups

I'm looking to create a site that allows registered users to create their own groups and have their own group blogs. They should be able to have a group page with a few details about the group and it ...
0
votes
1answer
24 views

Add sub menu page in your plugin

this is how i am adding the menu and trying to add the sub menu page which is not adding. party-reservation.php function a_qoute_admin_action() { add_menu_page(__('Reservations Pages'), ...
0
votes
1answer
355 views

How to add a custom page template selector to a custom taxonomy?

I am trying to add the custom page template selector that can be found in the "edit page" screen for pages to a custom taxonomy. The custom taxonomy is product_cat created by WooCommerce. I am using ...
0
votes
0answers
30 views

full screen image/video on front page, then scroll down for menu and site content

I am having trouble locating a plugin or finding out how to create only for the home page, a feature that will have a full screen image or autoplaying video, but when the user scrolls down the rest of ...
-2
votes
1answer
46 views

Wordpress Site in Multiple Languages

How can wordpress site have multiple languages options? I would like to have my wordpress site in 3 different languages? How can I do that? Is there any plugin or widget I can use for that purpose?
1
vote
0answers
276 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 ...
1
vote
1answer
39 views

Installing Jplayer in Wordpress

First, I would like to use Jplayer in Wordpress. I know that probably the procedure is very simple, but as I don't have much experience in WP, I'm having trouble. The installation consists in tree ...
12
votes
3answers
12k views

How can I force a file download in the WordPress backend?

I would like to add a "Click to download" button to one of my WordPress plugins, and I'm not sure which hook to use. So far, hooking 'admin_init' to this code seems to work: header("Content-type: ...
0
votes
1answer
546 views

Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin

I'm trying to add Highstock chart in my plugin. It requires input data in json format. But I have some troubles with default json parser in jQuery. I've already read this article, but still can't ...
0
votes
1answer
32 views

How set role at registration based on email?

I'm looking for a way to set all users that register with specific domain extensions to be given a non default role. For example if a user signs up with a '.co.uk' address then their role could be ...
0
votes
1answer
25 views

Plugin Development - Functions or Hooks?

I am brand new to WordPress plugin development and have a few questions, mostly about best practices but also some specifics. Essentially I just want to trigger an action (invoking a PHP class and ...
1
vote
2answers
1k views

I Want to Get A Plugin Version Number Dynamically

Howdy, I recently cribbed W3TC to implement an "in-update" changelist display (very cool), in my plugin, but there's an awkward bit of code I'd prefer to avoid. If you look at the top of this file, ...
0
votes
1answer
381 views

Engadget Like most commented plugins

i am looking for a most commented plugin like that of in engadget website and propakistani. I would be very thankful if someone could help me out with it. Thanks
0
votes
1answer
21 views

Generate Email Newsletter HTML from Posts published within a Date Range?

I would like to basically send a newsletter type email to a listy I have using a 3rd party such as MailChimp. My goal though is to be able to find or build a WordPress plugin that will allow me to ...
0
votes
0answers
27 views

Override plugin php file

Is there a way to override an entire php file from a plugin? I want to customize the output of the plugin, and with how the plugin is written I can't just overwrite the one function that controls the ...
0
votes
2answers
72 views

Delete tables from database when deleting plugin

I created a plugin and want to add a function to delete my tables from the database when a user deletes my plugin. I created a function that deletes tables from the DB when a user deactivates my ...
0
votes
0answers
62 views

WordPress custom setup with “uploads” folder on a separate server; and “themes” and “plugins” on two different servers

I am setting up a WordPress site on Linux (and using Amazon AWS if this matters to you), and would like to do it as follows: A separate server for the DB server A separate server for the "uploads" ...
0
votes
2answers
42 views

How to get the real address from a url (permalink)

For some reason i need the actual address of current page in my plugin , but after searching i can not find any answer on how i can get the real address of current page. I tested many functions for ...
2
votes
4answers
8k views

Different template of products for specific category. WooCommerce

For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement ...
2
votes
3answers
2k views

Convert WordPress posts to products in WooCommerce

Is there anyway I could convert all the posts e have right now on our WordPress install into products using some MySQL query or something like that?
0
votes
2answers
26 views

Create Table on Plugin Activation

// Initialization and Hooks global $wpdb; global $wp_version; global $wpmyfirstplugin_version; global $wpmyfirstplugin_db_version; global $wpmyfirstplugin_table_name; global $wp_version; ...
2
votes
2answers
1k views

Custom Taxonomy in plugin and template

I have a plugin that I am developing that is using custom post types and taxonomies. My question is this. How can I load the content/theme data from my plugin on to the page when the go to the custom ...
-1
votes
3answers
964 views

How to use 'Event Manager Shortcodes' plugin via the php code? [closed]

I am using Event Manager plugin. I want to use many of the shortcodes via php code. e.g [events_calendar]
8
votes
1answer
261 views

WP_User_Query and non-unique usermeta data

We have an issue with a WP plugin that we wrote and maintain - Export User Data A user has reported an issue that non-unique user meta data records are not being returned correctly - here In the ...
5
votes
1answer
2k views

Combine multiple plugins into one?

I've collected a few plugins that each have specific functionality I need for what would otherwise be a single large plugin. Is it possible to bundle these into a single installable zip?
0
votes
3answers
5k views

Add quantity field with each product on shop page-wooCommerce [closed]

I want to add quantity field with each product on shop page. I have used <input type="number" step="1" min="1" name="quantity" value="" title="Qty" class="input-text qty text"/> code in ...
0
votes
0answers
22 views

Global Signup/Login in two wordpress site some like similar to stackoverflow?

I have two different wordpress installation at two different server one at mydomain.com and other at subdomain.mydomain.com having different database. My question is how I implement global ...
0
votes
0answers
34 views

RSS Error: WP HTTP Error: Could not resolve host: planet.wordpress.org; & all amazon plugins are down

installed wp verson 4-1 rc (release candidate) On my admin dashboard i have noticed that the feeds (other wordpres news, wordpress development blog, and incoming links) are no longer working. ...
0
votes
1answer
35 views

Working plugin code breaks admin

I would appreciate any criticism for the big chunk of code below. What I'm trying to do is query a set of custom posts and return them in a table based on custom fields. It works ... the table is ...
5
votes
3answers
794 views

How can I make it so the Add New Post page has Visibility set to Private by default?

I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default: Status: Draft Visibility: **Private** Publish immediately [Publish] ...as opposed ...
1
vote
1answer
47 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 ...
0
votes
1answer
28 views

Add bcc to contact from on wordpress

I found a script for making your own contact form in your wordpress site (without plugin) Now, I want to add more clients email accounts as a BCC or CC. how can I do that? This is me code which ...
1
vote
1answer
17 views

Deactivate plugins using Migrate DB's find and replace options

If possible, how would I go about disabling plugins using the Find and Replace options the Migrate DB plugin offers? What I hope to achieve I use Migrate DB to bring copies of production DBs down to ...
3
votes
5answers
7k 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 ...
0
votes
0answers
20 views

Is it good practice to use WordPress nonce values to restrict page access?

I'm working with a colleague on a WordPress plugin. Part of the plugin functionality is showing dynamic lists with links which allow you to open a new page. Depending on the user's role, they may or ...
0
votes
0answers
11 views

Custom table in my plugin print UTF-8 (מוברש) charsets and not hebrew

i have created custom table in wordpress db to use my plugins needs. i have campaigns with hebrew names, this saved to column (varchar(100) utf8_unicode_ci ) in the DB i dont see hebrew but this: ...
0
votes
0answers
17 views

How to create an XML Exporter?

I made an XML Exporter in PHP and then thought it would be really useful as a Wordpress plugin, however I'm having some difficulty as I'm new to Wordpress. I wrote an Exporter in PHP that allowed ...
2
votes
4answers
3k views

Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).”

I run apache2 on Ubuntu, i'm sure there is a configuration or permission problem causing this. When I attempt to update plugins through the admin control panel, after I enter the FTP login/pass and ...
1
vote
1answer
55 views

How to Add TinyMCE's plugin in wordpress?

I had found a TinyMCE's plugin that change the direction of selected text. How to add this plugin in wordpress? Any one guide me? I had tried to add it in ...