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)

0
votes
1answer
2k views

Open a wordpress single post in a lightbox without the header and footer

I am developing a plugin which requires to open a single wordpress post inside of a lightbox. Here are a few details : Currently,I am using colorbox for lightbox. The lightbox is triggered to open ...
0
votes
1answer
359 views

Display Thumbnail instead of text title - Wp Plugin 'Download Monitor'

i am using this nice plugin (wordpress download monitor), nice feature. i have a one problem, there is category download section, actually i want to display thumbnail instead of "post title" please ...
1
vote
1answer
199 views

How to Make a Category Always Selected?

I'm trying to write a function to make certain terms of default category always selected. When the user is writing a new post, the term checkbox should be checked and he shouldn't be able to unckeck ...
1
vote
1answer
749 views

OOP Plugin and Menu - Call to undefined function register_setting()

WordPress documentation seems spotty on object-oriented code. I'm setting up a few plugins and the first should register settings and a menu page. It's throwing "undefined" for the ...
-2
votes
1answer
115 views

How to create an upload page (front side)

I would like to have a methodology for creating a functionality. When the user is connected, he will can access to a new page. In this page he will have the possibility to submit some fields like : a ...
9
votes
2answers
14k views

How to add a shortcode button to the TinyMCE editor?

How to make any plugin icon in wordpress post? The code I want to insert in plugin code and will appear in post bar [wp-admin/post.php]. Like this image: Output: If I click the icon it ...
-1
votes
1answer
38 views

Site is setup statically - how to make it content managable?

This is probably quite a basic question, but I have my site setup statically in WordPress, all I am trying to figure out now is how to add a new section to the WordPress backend where all the content ...
1
vote
2answers
202 views

multiple files in wordpress plugin

i'm trying to write a plugin with multi files, i'm sure i did it before without a problem but now i have the problem in the subject. in the main plugin file i included a file name - ydp-includes.php, ...
1
vote
2answers
95 views

Failed to invoke other hook from the init hook

Related to this question (Use wp init hook to call other hooks?) but not the same. Sometimes, I found that the hook will failed to run when I place inside the init hook, e.g. Not Work: ...
11
votes
3answers
1k views

Where do I put the code snippets I found here or somewhere else on the web?

Many posts here or somewhere else contain code, but they do not say where to put it. Example: I have found this post: How do I turn off 301 redirecting posts (not canonical)? I'm a newbie with PHP. ...
4
votes
2answers
602 views

Get a path to a different plug-in

To get a the path to a plugin you can use plugin_dir_path(__FILE__) - but this obviously has to be called from within the plug-in. How can you reliably get the path to plugin B (pluginb/pluginb.php) ...
0
votes
2answers
136 views

how to not show plugin in admin area

I'm just getting started with wordpress development. I'm trying to create a simple plugin that show results from a db in a table. I can do this, but I'm having trouble with the plugin showing at the ...
0
votes
2answers
36 views

Getting posts by taxonomy

I want to get a set of posts from a CPT based on a taxonomy term being present. I thought I'd use WP's get_posts() function: $results = get_posts(array $options); This function works fine when I ...
0
votes
1answer
177 views

Email verification feature in wordpress social login plugin

I'm using wordpress social login plugin.. It uses HybridAuth library. Here is a demo of HybridAuth library. The wordpress plugin looks nice. But it generates a random email for most of the social ...
2
votes
3answers
115 views

Nuance in adding CPT and TAX to a submenu

I have a lot of CPT's and custom TAXs and decided to put them into a few submenus. That worked just fine. I'll explain how I did that in a moment but the problem is that when you choose a "new term" ...
1
vote
1answer
40 views

Where to store the name of a custom table?

I'm extending the $wpdb object with properties for my custom tables. function setup_wpdb() { global $wpdb; // Create properties for custom tables $wpdb->my_plugin_table1 = ...
1
vote
1answer
71 views

How can i change the texts of plugin (created by me) in wordpress admin?

i have a created a contact us plugin, i want to change that name of the plugin "contact us" in Hindi. I already created languages folder in my wordpress, and maintaining hi_IN.mo, hi_IN.po files.
0
votes
2answers
88 views

WordPress templating system for custom plugins

I'm creating a custom plugin which needs to display HTML with dynamically updated values. To illustrate, here's what I want to achieve: <h1><?php print $title; ?></h1> ...
0
votes
1answer
64 views

Create and style menu

I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
5
votes
1answer
1k views

How to add sub-menu to a menu generated by wp_nav_menu by using plugin

I have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
0
votes
1answer
48 views

Lead form that submits to 2 external APIs

I need to add 2 registration forms to my wp website, each form should submit the information in it to 2 different APIs. I don't know even where to begin. Is there a plugin that can help me handle the ...
0
votes
3answers
1k views

Creating open content area and restricted content area

I'd like to create a site that has two separate areas of content. One for members with a payment system and another one for regular viewers that gives teasers so that they would want to read more and ...
2
votes
1answer
500 views

Error with Custom Admin Screen in iframe Thickbox

I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
0
votes
2answers
296 views

Subscribe to author?

Basically, I want to follow the author by other WordPress users. Whenever an author posts new post subscribed users need to get notification by email. If it's not already there, I can create a plugin ...
0
votes
3answers
90 views

How to pull user/author profile data in a plugin?

My site has a user profile page. For some reason I would like to pull user profile data in my plugin. I know I can pull logged in user profile data using get_currentuserinfo();. For example I would ...
0
votes
1answer
43 views

How do I duplicate a single post, with all its properties, and save it as a different post?

In a wordpress plugin, how can I duplicate/clone a single post? I would need to: 1) get a specific post 2) clear its ID property so that it's saved as a new post 3) save it. In the process, I would ...
1
vote
0answers
445 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 ) { ...
0
votes
1answer
851 views

Remove Meta-boxes (Yoast SEO plugin) [duplicate]

Possible Duplicate: WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins I was wondering how to remove Meta-boxes from the post page. I would like that only administrators or ...
1
vote
1answer
324 views

Custom GET Parameters In Plugin's Admin Page

In my plugin's options page, I'd like to have custom GET parameters. WordPress already has a "?page=" GET parameter, so simply linking to something like "?myparameter=value" won't work. I though of ...
0
votes
1answer
51 views

Create pages for authors

I have a pretty good question here. I would like to create a hidden page on my wordpress blog for each user as they are registered. I already have most of the code of what needs to be put on the page ...
3
votes
1answer
153 views

What is the correct way to check if WP_Filesystem can write to a directory without aking for username / password?

I'm trying to implement caching using the filesystem so i need to check if i can write in a directory. I've read Otto's article, but i've failed to understand how should i implement a check where the ...
1
vote
2answers
102 views

How to display non-page / post content

I have a custom made Twitter stream on my site. I want to have a permalink for each tweet which would go to a page which would display only the tweet - no other content - surrounded by my custom ...
0
votes
1answer
38 views

Can I use a custom post type as a custom taxonomy for a different custom post type?

I am working on a site and need some guidance on how to proceed. The site allows registration of (1) artists, (2) promotion teams, and (3) members. The site hosts talent expos in which artists ...
3
votes
5answers
372 views

How do I make a theme “plugin-ready”?

How do I revise a theme so that I can publish my event hooks and anyone can build a plugin to add new functionality easily to my theme?
2
votes
1answer
116 views

Checking if a file is already in the Media Library

I'm creating custom files in a plugin and adding them to the Media Library using the code provided in the Wordpress Codex for wp_insert_attachment. However, my plugin occasionally overwrites those ...
-2
votes
1answer
116 views

How to create a sharing marketplace with wordpress for bicycles?

I want to create a marketplace for bicycles with wordpress. Users can register/login and sell their bicycle to other users. They also can create a pre-defined page for their bicycle... Which ...
0
votes
2answers
313 views

Get plugin_dir_url() from one level deep within plugin

I've written several plugins using the structure : /plugins/myplugin/myplugin.php /plugins/myplugin/class/class-myclass.php So as to take advantage of OO and overall structuring my code From within ...
0
votes
1answer
47 views

Projectmanager Internal Link Code Location

I'm working with the ProjectManager Plugin (by Kolja Schleich) and i've exausted myself trying to find the code that controles the Internal Link Form field. Does anyone out there in the magical world ...
2
votes
2answers
153 views

Multisite, sharing content by URL

I have a network of two sites, A.example.com and B.example.com. I'd like it so that if I create a page on A with a permalink of /Widgets I can access it on B using the same relative permalink but ...
26
votes
3answers
2k views

Best way to initiate a class in a WP plugin?

I've created a plugin, and of course being me, I wanted to go with a nice OO approach. Now what I've been doing is to create this class and then just below create an instance of this class: class ...
1
vote
2answers
199 views

Ordering posts by metadata

In my plugin, I use these instructions to obtain a list of posts: $args = array( 'numberposts' => -1, 'offset' => 0, 'meta_query' => array( array( ...
0
votes
2answers
791 views

Let user subscribe to specific categories

How could I let each user subscribe to a specific categories of his choice? I want to do something like reddit subscribe to categories? Is there any tutorial helps doing this?
-1
votes
2answers
812 views

How can I create a user generated photo wall

I'm looking for a way to create a user generated photo wall. Like a memorial site so to speak. I would have a big header image up top, than people could submit their own photo and it would post below ...
1
vote
1answer
2k views

How to Rewrite Wordpress URL for a Plugin

I am trying to build a Wordpress plugin here with a custom user admin area. What I would like to do is when the user adds /edit at the end of the page, it should open a page from my plugin. So for ...
1
vote
1answer
225 views

Adding option to Gallery shortcode

just starting out in WP dev, and I'm looking for any guidance I can get. What I'd like to do is use a hook or filter to add my own option to the core WP gallery shortcode. I would want it to work just ...
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
3answers
46 views

Plugin Paths Issue

I am using a plugin which has several instances where it is using a hardcoded path rather than using the WP function to find a path. The problem here is that it's referring to wp-content but I've ...
1
vote
2answers
163 views

Avoiding Duplicate function names in Post Loop (WP_Footer script)

Say I created a plugin that injects content (used as a shortcode) into a post. I'm trying to push that code for each post to the bottom of the page. This works fine, however when you are on an ...
0
votes
1answer
116 views

How do I create Widget within plugin that uses its own class?

I wrote WordPress plugin and want to include 2 extra Widgets with it... if( !class_exists('plugin_name') ) { class plugin_name { // plugin code } } // include widgets code ...