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
0answers
77 views

function get_page_permastruct() on a non-object

global $user_ID; $page['post_type'] = 'page'; $page['post_content'] = "Hello world"; $page['post_parent'] = 0; $page['post_author'] = $user_ID; $page['post_status'] = ...
2
votes
1answer
2k views

Insert query inserts 2 entries, should insert 1

I've written a small posts by views plugin, well at least started one. My tables are set up but when they are updated the code adds 2 entries into my table when a post is loaded and views are ...
0
votes
1answer
48 views

How can I pass a variable to wp_ajax action?

I'm writing a plugin that pulls data from an external API and inserts it into a bbPress topic. Here's some sample code: function bbp_ajax() { $topic_id = bbp_get_topic_id(); $the_issue_key = ...
-1
votes
3answers
107 views

WP Job Manger change jobs url (NOT slug)

I'm using the WP Job Manager plugin in my wordpress website. The list of my jobs is currently found on /jobs . I would like to have it on /careers . The listing of all jobs is not a page so I can't ...
0
votes
1answer
2k views

Using the 'draft_to_publish' hook (post status transition)

I am trying to use the draft_to_publish hook (http://codex.wordpress.org/Post_Status_Transitions) to run a function when a post that is a draft becomes published. This hook does not appear to be ...
2
votes
1answer
68 views

How to customize user search

I'm developing a custom user search and I'm using this plugin found here: <?php function sul_user_listing($atts, $content = null) { global $post; extract(shortcode_atts(array( ...
0
votes
1answer
420 views

Plugin Flexible Captcha Image Generates 500 Internal Server Error

I am getting an internal server error on a captcha image at http://dev.smithonstocks.com/newsletter-subscription/ and I do not know why. Screen Shot Exhibit Research I have Done - I have Googled ...
0
votes
1answer
451 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
1answer
495 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
0
votes
1answer
27 views

Load plugin script in specific page

I tried to use the code below in version 4.0 of my wordpress and you can not load the file you wish only a specific page. Is there any way to do this with other code? The plugin in question is the ...
0
votes
1answer
384 views

Woocommerce custom fields

I'm using woocommerce plugin in my wordpress web site. In Admin panel for products I've added few custom fields as shown bellow: On my shop page, I want to print the custom field values, and I use ...
0
votes
1answer
368 views

Hiding posts - WP Hide Post not working

I frequently publish posts that I need to be hidden. They need to be published, so that someone who has their url can go to them, but I don't want them showing up on my homepage, in my recent posts ...
0
votes
1answer
14 views

Images not showing on homepage after migration [duplicate]

I have a website with one section not displaying images after migration, the src attribute returns empty urls, the site is intpro.co.zw and the section im referring to is on Latest Properties What ...
1
vote
1answer
339 views

Replace woocommerce | (pipe) separator in product variation to , or another character?

How to replace Woocommerce | (pipe) separator in product variation to , or another character? I use Cyrillic keyboard layout and there is no pipe symbol. To enter that symbol I have to switch to ...
0
votes
0answers
8 views

How to Add expiry header on thirdparty JS and CSS file in WordPress [migrated]

I am using different plugins in WordPress like Disqus comment system, Theia Post slider and other.. Here is a result from GTmatrix : I want to know how can I add expiry header on third party JS ...
0
votes
0answers
12 views

export.php override template

Is there a way to override export.php in wordpress core ? The file is under wp-admin/includes. My plugin overrides certain wp functions, not exactly override but just hooks my function and removes ...
0
votes
0answers
15 views

Translation for the plugin using redux framework does not work

I am working on a commercial plugin and i integrated redux in it and use it as my option panel, i am almost done with the plugin, i started to translate the plugin but the translation does not work, i ...
0
votes
3answers
68 views

Many plugins making WordPress run slow by design?

So this is what I've read: Many plugins might get WordPress slow if they are activated Many plugins might get WordPress slow even if they are not activated!? An example Let's say I build a large ...
1
vote
1answer
3k views

Add a captcha form to the woocommerce register form

I am trying to find a way of adding a captcha form on the register form that woocommerce build. I am able to create a template override but if i was to add the recaptcha directly i dont know what to ...
0
votes
1answer
18 views

Widget Script Loads at Bottom of Page

I've been working on a plugin that adds a script to the sidebar when activated. So far, I've been able to display the code, but it loads at the bottom of the page and not in the sidebar. I'm pretty ...
0
votes
0answers
18 views

34 Plugins Present In /wp-content/plugins Directory But Only 6 Of Them Are Being Displayed In WP Admin -> Plugins

There are around 34 plugins present in the /wp-content/plugins directory but only 6 of them are being displayed in the wp admin -> plugins section. Why other plugins are not being displayed. Another ...
0
votes
1answer
389 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
3answers
29 views

Action on WordPress Install

I am trying to use this https://gist.github.com/davejamesmiller/1966425 to fire when I first create WordPress site / "install WordPress" (i.e complete the "5 minute setup") but the wpmu_new_blog ...
3
votes
3answers
510 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 ...
-1
votes
0answers
8 views

How to add custom class to contact-form-7 inputs in Wordpress? [closed]

On my Wordpress site i'm using Contact Form 7 plugin to manage my contact forms. Default are set as: <p>Your Name (required)<br /> [text* your-name] </p> <p>Your Email ...
-2
votes
1answer
19 views

Woocommerce where to set the Price Suffix [closed]

Short question but where in de woocommerce/wordpress environment can I define the "get_price_suffix();" function per product? Thanks!
0
votes
0answers
13 views

looping thru custom table, and sorting by usr_id and date

so for the last months i've been learning my self basic php, and javascript. and as so many before me i've hit a brick wall at foreach so i hope there is a nice guy in here who willing to set a ...
1
vote
2answers
368 views

Moving image attachment from post to another?

How to move image attachment from post to another (not to "Remove Permanently" and Re-Upload) ? I'm using WordPress 3.5.0 and I have a thousand images to process. Is there a built-in function for ...
0
votes
0answers
49 views

AJAX login without a plugin does not work. when add a action to function.php

I am using wordpress ajax login without a plugin. I want to not be allowed users access to the WordPress profile after login, Because i have designed a specific profile in the link: ...
0
votes
2answers
45 views

WordPress API functions not working at AJAX functions.php call

I am trying to show subcategories of a category in WordPress using AJAX: when I select a main category, there is a call to WP Ajax and the result is used in showing the subcategories. So far, I have ...
1
vote
1answer
30 views

Hook (or other way) to find out when another plugin is activated / installed

Is there some way to run a function when another plugin is being installed and/or activated? Basically I need something like register_activation_hook only for other plugins. The use case: I want to ...
0
votes
0answers
16 views

Can I attach the data from one post to another?

I'm looking to create a "snippets" plugin of sorts that lets me create a library of snippets. I then want to be able to attach those snippets to a post but not within the post_content. I basically ...
0
votes
0answers
10 views

Deactivating plugins redirects to 404 page

Hello I am facing some problems with my website. One of them is when I try to deactivate a plugin, I do the following: 1- click "Deactivate" under the plugin, then click "No Problem to report", when ...
0
votes
1answer
19 views

Hidden Some Setting on Post or Page [duplicate]

I'm using Advanced Custom Fields, but i want to remove this (in the red mark) from non-admin, what plugins to disable this? Thanks.
0
votes
1answer
27 views

How do i get all author posts on custom post type list

I am trying to filter a custom post type by some custom fields value and if the posts are by author, query for 2 custom field works but author posts doesn't work. Thanks! add_filter( 'parse_query', ...
0
votes
1answer
9 views

Include plugin form in the home page

I created a Wordpress plugin, which allows the admin to add information through a form, and it is saved in the database. I'm trying to link each photo that I upload in the Media library with a form. ...
0
votes
1answer
12 views

Remove / overwrite some functions in buddypress.js

What's the best practice to overwrite some JS-functions in buddypress.js? There are some quite annoying things in there like animating the form-fields on click/blur/post which I need to remove ...
0
votes
1answer
35 views

Can I run multiple queries with $wpdb->prepare?

I have a query(actually multiple queries) that runs perfectly in phpmyadmin, (I've also tried get_var in place of get_results, but I think I might need an alternative to $wpdb->prepare. How can I ...
0
votes
0answers
23 views

Create csv file in plugin

I have written a function to create csv file usin the below code.I am getting Headers already sent warning and I can't able to create the csv file too.How can I fix this problem.I have attached the ...
0
votes
1answer
158 views

Events Manager plugin - booking form required fields

I was trying to make the "name field" & "phone field" in the events booking form a required field as well and I managed to look for some answers from here --> ...
0
votes
1answer
322 views

Custom meta box with jQuery.sortable custom post type list

What I'm trying to do is have a custom post type ordered differently on different pages. I've searched around for quite a while and can't seem to find anything to help. I have a post type named staff ...
0
votes
1answer
32 views

The safest way to automate WordPress backups

I'm running over 20+ sites on a Linux shared cloud environment. At present, my hosting company performs daily, offsite backups. However, these are only kept for 30 days. This works great, but what ...
0
votes
2answers
350 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
2answers
332 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
0
votes
2answers
83 views

Woocommerce: deleted single-product.php, everything still works. How is it possible?

I'm trying to customize single-product.php to achieve the often requested different categories = different single product templates, but it seems this file it's not affecting anything at all. It's ...
0
votes
0answers
21 views

How to add an “Add Image” field to my plugin and attach it to css background dynamically?

I am configuring a custom plugin to basically make things easier for a client who has no code experience and will probably be changing things around eventually. The following HTML displays a box ...
0
votes
1answer
325 views

Custom booking form field not saving

I am trying to follow this debugging tutorial on adding custom booking form fields - Link My intention is to add a field, which is required, that is saved amongst the other user data when they ...
0
votes
1answer
7k views

XML parser plugin

I have an XML data source that updates daily. Is there a plugin that will allow me to create a query and update it daily with the least programming possible and display the data on a page?
0
votes
1answer
809 views

Action hook “wp_insert_post” works but not for last imported post

I want to run a custom function whenever posts are imported to my custom post type. I am currently running this code - function on_post_import($post){ global $wpdb; $results = ...
0
votes
1answer
19 views

Getting a list of the published posts

I would like to get a list of the posts published in WP in every category with the published date and the last modified date. I've tried to achieve this result through a Plugin but it's completely ...