WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins
0
votes
0answers
10 views
Deleting comments with meta data
I am trying to delete a bunch of comments using the admin interface, and I can't do this because of the errors below. The comments have associated meta data (I am working on a custom plugin) and I ...
0
votes
0answers
42 views
Script timeout when importing/inserting > 45-50 posts from an external table
Wondering if anyone can spot the obvious mistake or give me some guidance on where I'm going wrong.
I should also state this is my first plugin with Wordpress, so I'm sure I have overlooked ...
2
votes
2answers
164 views
How Do I Use jQuery UI In My Plugin
It's a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of ...
2
votes
1answer
34 views
add_filter and remove_filter added before and after wp_query
I have just started with WordPress Development, and found following block of code online (in some tutorial)
function filter_where( $where = '' ) { // posts in the last 30 days
$where .= " AND ...
0
votes
0answers
42 views
Display custom fields in frontside user profile
I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile.
I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
0
votes
0answers
45 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" ...
2
votes
0answers
32 views
Customize multisite site creation with user data
No, I've never made a plugin. But I would like to, or find someone who can work with me on it. What I'm hoping to accomplish is setup presets on site creation. I need my multisite to do this:
When ...
0
votes
1answer
32 views
Wordpress removing data attributes for scheduled post
Hi I'm using the smarty templating engine in wordpress to generate HTML like the one below:
<li>
<div class="checkbox_container" data-asin="B0009Y7APU"><input type="checkbox" ...
-1
votes
0answers
41 views
List custom post type URLs based on user form selection
I'd like to set up a form with dynamically populated radio buttons for all custom post types. Something like this:
custom post type 1
custom post type 2
custom post type 3
continued for all CTPs...
...
1
vote
2answers
46 views
How do I only load js on the post-new.php and post.php pages in admin?
I have some script that is loading in the admin. I only need it to load on the new post and edit posts screens.
What is the best way to do this?
1
vote
1answer
16 views
Including file or library from other plugin
I'm creating a plugin I would like to use from other different plugins. This plugin declares classes and functions. So, I am thinking about the best way to include, from one plugin, a php file present ...
0
votes
1answer
135 views
How to modify product page for Jigoshop
Hi I am editing Jigoshop loop-shop.php to create a customize look list and the code is below .... Please do let me know where I can get below things ...
Add to Cart - Link Only
Price Text - List ...
-1
votes
0answers
100 views
Need help to retrive data from MYSQL based on dropdown selection
I am displaying a list of country in the drop down list, retrive it from the database . and i need to display price for the selected country based on the options chosen by the customers in the drop ...
0
votes
1answer
37 views
Wp-admin Custom User Management
I am working on a plugin for which I will have to develop a backend page similar to the built-in "Users" one, in the sense that it will be basically do the same things: list the existing users ( using ...
0
votes
1answer
47 views
Custom Post Type Navigation on Custom Field
I'm working on a Custom Post Type sorted on a Custom Field. No problem when I list out the posts. But when I go to the single post page for one of these, I want the Prev and Next navigation links to ...
1
vote
2answers
54 views
Custom Post Type Plugin: Where Do I Put The Template?
I'm writing a custom post type plugin. Part of it I'm outputting to the template via shortcodes. But other parts need a custom post template, and I figured out how to use the template hierarchy for ...
0
votes
0answers
24 views
Wordpress cookie artificial manufacture for single signon
I am trying to integrate wordpress into django. What I am planning is to create the wp user table using django and when a person logs into django, I will create a wordpress cookie with ...
0
votes
1answer
20 views
Finding a post's slug
I'm using wp_query() to get custom posts from the database. I want to list these out as links to the entries, so I'm thinking I could use the slugs. Sadly these don't seem to be included in the ...
-1
votes
0answers
48 views
Get a wordpress plugin that allows me to ask questions and as the admin answer those questions within a wordpress page [closed]
My name is Scott and I am a life coach. I am looking for a plugin that allows me to ask multiple questions (20 or more) within one wordpress page on my site. Then as the admin I need to be able to ...
1
vote
1answer
27 views
Admin Posts List (edit.php) by post IDs
I'm writing a plugin that creates posts in bulk. I provide a way for the user to set certain parameters of the created posts beforehand. But it would be useful to use the WordPress default "All Posts" ...
3
votes
2answers
103 views
Pass PHP variable to javascript
Is there any possibility to pass some PHP variables in javascript so I can use them later?
Only in single.php.
I heard about wp_enqueue_scripts but with that it is neccesary to declare a path to a JS ...
1
vote
1answer
34 views
Two functions utilizing registration_errors filter
I wrote two plugins that utilize the registration_errors filter:
add_filter( 'registration_errors', 'process_payment', 10, 3 );
add_filter( 'registration_errors', 'add_user_to_SF', 10, 3 );
When ...
1
vote
1answer
37 views
Using ob_get_content to get_search_form puts into infinite loop
I am trying to change the look of my searchform. It basically needs to have two text fields. I want this to be in form of a plugin, which anyone can activate. SO obviously I do not have any control ...
0
votes
1answer
30 views
Capturing POST data
I am trying to modify the Member Status Plugin so that the status are based on the data saved on a custom database table.
Basically I wanted to change the administration menu with a form that can ...
0
votes
0answers
39 views
Recording geolocation data from user submitted form
I'm building the following plugin to allow users to submit posts with images via a form. It also generates geolocation information, which I want to store and use with the Geo Mashup plugin.
However, ...
0
votes
1answer
32 views
Redirect User to custom URL after registering
I modified the default Wordpress registration page to include a role and also payment fields. I am adding a Gold Member feature the my website, which requires payment.
I'd like it that after this ...
0
votes
1answer
68 views
calling admin-ajax.php from admin-ajax.php
I'm writing a plugin that calls the output of another plugin's ajax, which is set-up at wp_ajax_
I would have called the functions directly, but limitations in the plugin make that a non-option.
To ...
0
votes
1answer
40 views
Multi-part form and wp_redirect()
For starters, it's a plugin (with a shortcode) or at least I would prefer it to be.
I've got two issues both related to wp_direct.
If form 1 validates I want to redirect to form 2, and continue the ...
0
votes
1answer
60 views
Load php file with jquery in single.php
I implemented in my worpdress theme ios button switch and when someone click the button the script load a php file with the text: on or off
Here is the code:
<script type="text/javascript">
...
0
votes
0answers
48 views
PHP file edit ! beginner? [closed]
I am totally newbie to programming and want to edit this timesheet plugin . All I want to do is that make admin approve or reject it . Also add 2 other fields( Note and Comment ) to the list of ...
0
votes
0answers
30 views
How to add demo content to theme from outside plugin
I am devloping a new Wordpress theme that requires the installation of an outside plugin, called Revolution Slider. I would like to create a set of demo slider images for the user upon theme ...
1
vote
0answers
46 views
Am I not understanding plugins?
So I am trying to make it so that you can load a class from a child theme, theme or plugin using the following:
class AisisCore_Loader_AutoLoader{
protected static $_instance;
protected ...
0
votes
0answers
25 views
attachment_fields_to_edit stopped working in plugin following 3.5 update
Following an upgrade to WP3.5 Elvin, a plugin that duplicates images (by duplicating metadata, not by actually copying the image) stopped working.
The plugin, BDN Duplicate Images, is just one file ...
0
votes
0answers
14 views
How to access menu items object from within plugin?
how to access menu items object from within plugin? When I try to use wp_get_nav_menu_items() I get : Fatal error: Call to a member function get_page_permastruct()
0
votes
2answers
95 views
Headers already sent error with CSV export plugin
I have built a Wordpress plugin that allows the user to export all pages, with their levels and urls, to a csv file.
The problem I have is that I keep getting error messages when trying to export ...
1
vote
0answers
37 views
Wordpress Localization and Templating
I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building.
It's only now that I discovered that the localization doesn't work when I declare my ...
6
votes
1answer
66 views
API to trigger prompt on leaving page
I have a proprietary plugin that creates a metabox on the edit-post page. When the data managed by the plugin is edited and the user navigates away then we would like the user to be prompted as ...
0
votes
1answer
34 views
Dynamically generate meta tags and titles for a wordpress page
I have created a wordpress page that will output product details of a specific product from amazon: wordpress/product?asin=123
I'm just using the product page as a template and it really contains ...
1
vote
2answers
43 views
How can I prevent my plugin's next version from updating one of the files?
I read in another question that all the files in the directory are deleted during an update and this is bad design. Got it. Prevent plugin from deleting important directories
Is it possible to not ...
0
votes
0answers
24 views
Want to catch only the value between quote in metavalue SQL
HI I'm working on wordpress and I want to make a SQL request to catch only the value between "" stored in my bdd from usermeta.
For example :
a:2:{i:0;s:2:"82";i:1;s:2:"78";}
i want to catch 82 ...
2
votes
0answers
61 views
Plugin development with unit tests
One of the things that my plugin does is creates a number of SQL tables as part of a versioning function (that is run under the admin_init hook as I couldn't find a better wordpress way of doing ...
0
votes
1answer
38 views
Check spam in custom form - akismet
I have a plugin that has input form, I have decided to check submitted data with akismet. I do have API key, WP comments are filtered correctly...
here is, what I found: ...
0
votes
0answers
27 views
wp_schedule_event attempt causes T_CONSTANT_ENCAPSED_STRING error
I'm developing a plugin and am trying to set up a recurring event for it. However, even putting the function that I'm about to link to an activation hook in my file causes wordpress to throw this ...
2
votes
2answers
52 views
When would I use either function for plugins?
I am curious as there are three function for loading files in plugins:
plugin_dir_path() and plugins_url(), along with plugin_dir_url() So as a plugin developer, which would you use for loading php ...
0
votes
0answers
34 views
Adding (blog-specific) links to “My Sites” admin page
The My Sites admin page only has links to the sites’ dashboards and production pages which is of limited value. I am trying to figure out a way to add a more useful links to them like New Post, ...
0
votes
1answer
37 views
Fatal error: Cannot redeclare admin_notice() [closed]
I'm writing a plugin, most of my code is wrapped in classes, except for an admin_notice fallback function that I call when I am not loading the main plugin class:
class MyClass {
//Main plugin ...
0
votes
0answers
45 views
rewrite rule, add query var, but it is not in the function.php, it is in the plugin
I tried to create a plugin so that users don't need to edit other files (like function.php, header.php).
I tried to add a rewrite rule in the plugin, all things works fine, but add query var.
My code ...
0
votes
0answers
33 views
method doesn't work when being called from wp cron
I don't know what's wrong but the method that I'm trying to execute doesn't seem to be running when being called through wp cron. In the code below I'm trying to insert a new blog post. When I have ...
1
vote
2answers
47 views
How to check if current static page is frontpage from admin plugin
I set static page as front page.
I need to know if user currently on homepage in my custom plugin.
Functions is_home() and is_front_page() doesn't works, since homepage is static page.
I can get an ...
0
votes
1answer
57 views
How to Load Plugin JS in theme's footer section
I am working on optimizing my theme so that the load time can be decreased, as of now i have used wp_enqueue_script() to add my custom js file and everything is working fine as expected.
One thing ...


