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.

learn more… | top users | synonyms (1)

2
votes
0answers
26 views

Automatic updates in plugin - not hosted on wordpress repository

I'm coding a plugin which probably will have updates in the future, and I want to take advantage of the automatic update mechanism in wordpress. I followed this tutorial: Everything seemed quite ...
2
votes
0answers
26 views

Adding more options to the instance of an image. (Attachment Display Settings)

I'm trying to build a simple reusable plugin for image presentation in Wordpress 3.9, and it seems I've hit a brick wall. I would like to be able to add a couple of options to the instance of the ...
2
votes
0answers
106 views

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...
2
votes
0answers
88 views

Bridge Wordpress Media API with custom tinyMCE plugin

In my tinyMCE plugin, I would like to be able to call the Wordpress Media manager introduced in WP 3.5. I am currently working on a plugin that needs to fetch images from the library. I know we can ...
2
votes
0answers
153 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
148 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
145 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 ...
2
votes
0answers
71 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
16 views

How to remove default style of header in wordpress metabox

I have the problem which when I create a header in my wordpress plugin metabox, it always apply the default style on my header: even when I apply, my own style, <h3 style="background-color: ...
1
vote
0answers
21 views

Is there a directory my plugin can write files to that cannot be viewed via the browser/url?

I want to restrict access to some files uploaded via the admin interface but I cannot rely on the ability to use .htaccess (could be turned off, or they might be using a non-apache web server). I ...
1
vote
0answers
25 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
1
vote
0answers
21 views

How to instantiate customize_save_after callback function?

I have to do some custom operations after settings are saved in the customizer. It looks like the callback function isn't invoked. What am I doing wrong? Something to do with the Ajax status of the ...
1
vote
0answers
64 views

Plugin generated virtual pages

I am currently devloping my first WP plugin. This plugin should generate dynamic pages on the fly if a fixed non-existing URL is requested. This means I want my installation to accept addresses like ...
1
vote
0answers
40 views

Wordpress Custom field Colors

I came across this code and would like to use it in my project. It works fine, but the problem is, I need to change those colors in the array to instead pick transparent images from url since I am ...
1
vote
0answers
41 views

Plugin templates vs Parent Theme

I've been building a plugin using a WooCommerce like template system, where the plugin houses the default templates, but allows for overriding via a template folder in your active theme. It just ...
1
vote
0answers
40 views

I have 2 plugins using the same wp_login action hook and one is not working

so this is after a few hours investigating, I have s2member plugin and a custom plugin what happens is they are both using wp_login hook in this manner, s2member: add_action("wp_login", ...
1
vote
0answers
34 views

How to use github to update my plugin

I am trying to use github for my plugin updates, i have looked around I found this WordPress-GitHub-Plugin-Updater. I am now stuck and cannot get it to work. I have created the simplest plugin to ...
1
vote
0answers
33 views

Selectively update themes in WordPress multisite

I have been running a WordPress multisite installation for a few years, and every time WordPress releases an update (from x.y.z to x.y or x.y.z to x.y.z) there is always a chance that one of the ...
1
vote
0answers
34 views

remove add new post, if there is already one post

I have a custom post type, but I want to allow only one post. if the user posts then the add new post should should be disabled or removed. so only post is allowed of that custom post type. If the one ...
1
vote
0answers
76 views

Help writing custom function with rewrite endpoint that generates a page from dynamic content

I'm creating a WordPress plugin that will pull content from an API and display it dynamically on a WordPress blog like it's native content. An example of this content would be company locations. I ...
1
vote
0answers
40 views

Create a custom capability to allow an 'Editor' to edit only 'Subscriber' users

I want to create a new "Moderator" role (in between Administrator and Editor), that can edit only "Subscriber" type user accounts. I can create the role and add existing wp capabilities, but I don't ...
1
vote
0answers
119 views

Wordpress and WebRTC?

I'm pretty new to WordPress and I was wondering about WebRTC integration : user permissions, page integration... I'm especially interested in chat communications (writing and audio, video is not my ...
1
vote
0answers
215 views

how to use shortinit in wordpress

I want to load a minimal resources in Wordpress because the server that I'm working on is very slow. I tried defining short init in the wp-config file: define('SHORTINIT', true); But then I got ...
1
vote
0answers
223 views

How can I save a multiple select array with the settings API for a plug-in options page?

I'm thinking this may be more of a problem with my PHP rather than my use of the settings API, but I can't seem to get Wordpress to save an array of data for a multi-select box. The multi-select box ...
1
vote
0answers
65 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
47 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
67 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
33 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
170 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
204 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
181 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
66 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
448 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
104 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
223 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
71 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
32 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
19 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
58 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
59 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
93 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
9 views

Adding a Column Break option to the Menus Interface

I've been working on customizing the Navception plugin, really dumbing it down to just output one bit of code. I want the user to be able to drop in a "Column Break" navigation item that will insert ...
0
votes
0answers
9 views

add content nth-child to pagination

I'm using a pagination plugin on my website called Wp-PageNavi. it works fine and help me to navigate between pages from a same category. the result looks like this : (when on page 4 for example) : ...
0
votes
0answers
8 views

The plugin assign to the wrong place (layout problem)

<?php /* Plugin Name: Push notification Plugin URI: http://wordpress.org/plugins/temp/ Description: No description Author: Temp Version: 1.0 Author URI: http://ma.tt/ */ // This just echoes the ...
0
votes
0answers
20 views

Developing a plugin, ran it through P3 Profiler, shows up slow, but I don't know why

I am having an issue with my plugin I'm developing. After using the GoDaddy P3 Plugin profiler, it shows that is taking up a large amount of runtime, but the plugin itself is very minimal. It just ...
0
votes
0answers
12 views

function triggered by “manage_users_custom_column” filter not working

I am trying to add a custom column un users.php but it stays empty. I have successfully added a column to the users admin page with this code in my theme's functions.php file: function ...
0
votes
0answers
18 views

How to allow users to upload files to a subfolder of my plugin, or without running into permission issues?

My plugin has a form in admin dashboard, allowing users to upload files. Now, when I grab this file, via $_FILES, is there any way I can save it to: example.com/wp-content/plugins/myplugin/subfolder ...
0
votes
0answers
23 views

Can i duplicate pages created via plugin?

I have a custom built plugin which generate event pages, now my client wants the event to copy.. how can i copy the page generated via plugin. I have used plugins available but they only work with ...
0
votes
0answers
15 views

Saving plugin data returns “You do not have sufficient permissions to access this page.”

I'm developing a quote plugin which will save a quote to the WPDB using a form to input the quote. I've created half this code and got the other piece from another programmer on here. I'm looking to ...
0
votes
0answers
20 views

Dynamic banner for use on external sites

Pro question: we would like to display our most current wordpress articles on external sites (something like advertisments or banners). I think this could be easily done with iFrames, but I doubt ...