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
4
votes
0answers
106 views
How to write testable classes in Wordpress
I'm currently doing some modifications on the Wordpress plugin that I created in order to make it testable. The problem is I don't know which methods am I suppose to write tests for. I have methods ...
4
votes
0answers
238 views
How to extend LINK TO functionality in ATTACHMENT DISPLAY SETTINGS
In WP 3.4.x and earlier, it was possible to add a button to the media manager by messing around in an attachment_fields_to_edit filter. For example, a plugin could, when it figured out that an item ...
2
votes
0answers
33 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 ...
2
votes
0answers
62 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 ...
2
votes
0answers
62 views
Placement of Code in Plugin for hooking `save_post`
I ran into a strange Problem today developing a new Plugin.
I set it up as usual, creating the f711-roomprice folder in the Plugindirectory, and creating the f711-roomprice.php as well as an inc ...
2
votes
0answers
79 views
Save HTML formatted data to wordpress post meta using add_post_meta()
Array
(
[post] => Array
(
[jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
2
votes
0answers
68 views
Multisite plugin development and wp_enqueue_script
I have a plugin I'm developing. It works fine on a single site version of WordPress. It installs on a multisite version of WordPress, it appears to work on the admin pages, but when the plugin ...
2
votes
0answers
47 views
How do I approach removing menu items on the fly based on settings in my plugin?
I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
2
votes
0answers
56 views
Singular name Plugin localization
I'm trying to localize the singular name of a custom post type.
...
'singular_name' => __('key', 'plugindomain')
...
I created a .po and compiled it as .mo. I also loaded the translation using ...
1
vote
0answers
26 views
Wordpress daily cron is executing more frequently than once a day
I have a wp cron job scheduled based on what's in the options. In this case its schedule daily.
add_action('init', function(){
if( !wp_next_scheduled('product_posting_cron') ){
...
1
vote
0answers
48 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 ...
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 ...
1
vote
0answers
35 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, ...
1
vote
0answers
38 views
get_template_part from plugin
This is default get_template_part function inside WordPress:
function get_template_part( $slug, $name = null ) {
do_action( "get_template_part_{$slug}", $slug, $name );
$templates = array();
...
1
vote
0answers
39 views
Unable to delete custom post types, confusion around capabilities
So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types.
You ...
1
vote
0answers
27 views
Any ideas how to make unit test read the theme functions.php?
I have performed a unit testing for a plugin that works perfectly until the section where I need to activate the theme and check if the theme is supplying the right hooks data to the plugin.
Inside ...
1
vote
0answers
21 views
Ordering taxonomies by rank
I'm using a function (copied and modified a bit from this question ) which displays taxonomies in order by rank with » between parent and child and | between terms, but I get a mistake in the html ...
1
vote
0answers
62 views
Remove default admin notification, Settings API
I have added custom error messages while saving WordPress plugin settings using the settings API method add_settings_error.
It is working well, but the default message ("Settings saved.") is also ...
1
vote
0answers
34 views
How to save the values of checkbox to the register setting?
<?php
function default_menu() {
<form action="options.php" method="post">
<?php settings_fields( 'sample_check' );?>
<input type="checkbox" name="sample" value="nofollow"/>
...
1
vote
0answers
17 views
Unit Testing a Plugin functionality with cron
I'm currently on the process of unit testing a plugin using the Wordpress unit testing framework.
In one of the functions to be tested,it will send mails to users in a periodic time interval so it ...
1
vote
0answers
70 views
Getting wp.me shortlink for wordpress custom post type
There is a button called "get shortlink" for wordpress builtin post type & pages. If we click on it we can get wp.me shortend url for that particular post
This can also be got using the function ...
1
vote
0answers
85 views
Post added via wp_insert_post with category doesn't show in category listing
I've created a plugin that auto creates a post and attaches a category to it, which is then hidden from the main blog and only shows in the category listing...
I can successfully add a new post via ...
1
vote
0answers
105 views
How do you create a custom edit.php / edit pages page
I need to create 3 custom edit.php pages which only display pages with a certain parent and the Post New button links to a new page with the corresponding parent.
The closest answer I can is do not ...
1
vote
0answers
44 views
vQmod-like tool for Wordpress?
I realize that vQmod works on opencart because it is MVC. Is there any tool out there that would function LIKE vQmod, to inject core hacks into--say, for example--theme files, plugins, et al, without ...
1
vote
0answers
53 views
Possible to get all posts with my shortcode?
So here's what I'm trying to do. I'm building a plugin for a business directory. Each business is assigned to a category. There are two views, listing and detail. To give the user as much ...
1
vote
0answers
257 views
How to bind data-src attribute for the image in the post using jquery?
I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag.
Or I have to get the url from the ...
1
vote
0answers
51 views
permalinks with get variables
I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows
add_filter( 'query_vars','driver_vars' );
function driver_vars( $vars ) {
...
1
vote
0answers
142 views
Mamp Pro features like virtual hosts in Xampp or Wamp?
A friend of mine showed me the virtual hosts feature within Mamp, its pretty nifty. Using git and mamp pro to work locally makes it really easy to set up staging for WordPress sites.
Was wondering if ...
1
vote
0answers
59 views
Link Pop-up in custom plugin
I am trying to build a plugin, for one of my current task, and at a field it requires user to provide the URL their content would link to.
I have added a text-box where user could paste the link they ...
1
vote
0answers
23 views
Problems with cron
I have a this code that delete some post meta at al 7:55 hour of the server:
if ( !wp_next_scheduled('borra_meta_datos') ) {
wp_schedule_event( mktime(7, 55, 0, date('n'), date('j')), 'daily', ...
1
vote
0answers
14 views
How ( and mostly at what time ) can i prevent the alternate cron from running?
I'm using the alternate cron version, but i need to prevent it from running on some calls, how can i do this?
In the cron.php file i've seen on line 225
if ( defined('ALTERNATE_WP_CRON') && ...
1
vote
0answers
85 views
Can I use core's “or Link to Existing Content” feature in my plugin?
When adding a link in the TinyMCE editor, you get a nice search with ajax function that searches your existing content and lets you select from it.
Is it possible/reasonable to re-use this in a ...
1
vote
0answers
53 views
gallery option is not available in media upload box in costum theme option page
Hi everyone I am creating a theme in which I have to created a sponsor upload image gallery on the admin panel in theme option page and its slide show on the front panel for this I follow tutorial to ...
1
vote
0answers
49 views
Add a new confirmation page before saving
I'm going to add a hook that does some modifications of the text before saving. Before making the changes permanent, I would like the user to confirm the changes after a "save_post" hook. Is there a ...
1
vote
0answers
75 views
add_settings_field Data not passing to Options Page Like it should
I am creating an options page with some fields. As you can see from the code below, I only have one field registered. However, when I try to send that field to my options page, it does not display the ...
0
votes
0answers
13 views
Wordpress plugin update required not showing in dashboard
I've updated my first plugin (making a branch/tag to tags/1.1.0 from the trunk)
All version numbers are correct in the files and everything shows up on the plugin page as it should. However, the ...
0
votes
0answers
14 views
Return to Post Editing Screen after a bulk action from the Custom Meta Box
Trying to adapt Custom List Table Example plugin for my own needs.
Here the page field is responsible for specifying the plugin page to which the form containing List Table posts to:
<form ...
0
votes
0answers
22 views
Front end form submission/processing, without using a template file
I'm writing a plugin which has a front end form that is generated by a shortcode. I'm struggling with processing the form submission in any way. Many tutorials describe placing form processing code at ...
0
votes
0answers
44 views
Wordpress (developer); Wp-Pro-Quiz email the given answers?
I am using the great Wp-Pro-Quiz plugin for my wordpress site. All works great, but i was wondering if it would be possible to send the questions and given answers, once a quiz is completed, to the ...
0
votes
0answers
15 views
WordPress Popularity Score relative to all posts (score views, shares and comments)
I am trying to find a solution to score my posts in an effort to visually represent how "hot" they are, relative to other posts, or relative to a score of 1.
I have views, total shares and comments ...
0
votes
0answers
30 views
Get page type to display content
I have some checkboxes to select where can I display my plugin and I save in db in this format:
Show popup in this pages:
x Article (Public)
x Pages (Public)
x File (Public)
x Revisions (Not ...
0
votes
0answers
20 views
Zend Autoloder.php file missing?
I'm using a Wordpress plugin Zend Framework for wordpress and I'm downloading the actual Zend library to plug it into the plugin (it doesn't provide by itself) from ...
0
votes
0answers
29 views
How to get Internal Date Message Attribute in php - wordpress admin init hook
I am writing a wordpress plugin and need to show recent emails on plugin page.
I am using IMAP and want to keep track of UID, UIVALIDITY and INTERNALDATE to identify newly arrived emails but i don't ...
0
votes
0answers
25 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
0
votes
0answers
11 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 ...
0
votes
0answers
46 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
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
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
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 ...

