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
73 views

Get Core Functionality from Within a (Secondary) Plugin File

I have a plugin with the following structure: myplugin.php includes/authentication.php I can access core WordPress functionality inside myplugin.php fine, but when I try to access stuff such as ...
0
votes
1answer
92 views

Can't remove menu items added by plugin

I am trying to remove menu items from the backend but for some reason I can't remove specific menu items added by plugins. For example, I can use this line to remove the plugins page and it works just ...
0
votes
1answer
193 views

register_activation_hook() not activate plugin

I am writing a plugin that on the activation must create a new table in database. To do this i am using: register_activation_hook( __FILE__, 'createTable' ); When i run the activation, my plugin ...
0
votes
1answer
78 views

Call current post parameters inside a plugin

I edited the plugin WP User Frontend (for editing posts from frontend) to have two different edit pages for two different post types. Here's the original function which handles the edit_link. ...
0
votes
3answers
94 views

Plugin's total number of users

Sorry if this has been asked before, but I couldn't find any reference to this here. Looking at a plugin's stats on the WordPress site, you can see a percentage of versions of your plugin being used. ...
0
votes
1answer
43 views

How can I add the custom taxonomy categories to the posts and pages?

I'm trying to build new wordpress plugin. Additional to the default wordpress categories box in the publishing screen of posts and pages, I want to add another box for custom taxonomy categories , How ...
0
votes
1answer
162 views

Is it possible to remove next-post / previous-post with out creating a custom template?

I'm creating a plugin that uses a custom post type. I do not want to make a custom template for viewing the posts and discovered I can add a filter for the_content to include my custom fields, this ...
0
votes
1answer
100 views

Wordpress plugin not eching popular posts

I created a plugin in wordpress to show popular posts, but this is not returning the post and number of comments properly. Even I have comments in my post(approved as well, so this is not the case) ...
0
votes
2answers
122 views

How can i call from custom fields to the category editor?

I found this code for custom field add category editor. I added custom field to the Category. e.g. My field name is Hastag and i have a Sport category. And i want to call display Sport's custom ...
0
votes
1answer
66 views

How to apply order on custom taxonomy and custom meta key on custom post type

Here is the code in am using $arg= array( 'post_type' => 'vr_listing', 'tax_query' => array( array( 'taxonomy' => 'vr_listing_status', 'field' => ...
0
votes
2answers
958 views

Create a clickable name in WP_List_Table for Plugin Admin

I've been developing a plugin where I wanted to create a table, styled and working just like Wordpress's native Post/Page tables. Following the guide below, I was able to create the table and load my ...
0
votes
1answer
132 views

My first plugin doesn't save the data in options

This is my entire code. It doesn't save the data I enter on the plugin settings page. I don't have a clue on why this happens! Can somebody please help me? <?php // add the admin options page ...
0
votes
2answers
350 views

AJAX request not routing through proxy

I've built a plugin that uses AJAX to post a URL to the URL2PNG API and bring back a screenshot into WordPress via wp_remote_get. It works beautifully in my development environment. In production, ...
0
votes
1answer
123 views

Inserting into WP DB

I had initially asked a question based on my code (which has since been removed), I need some help/guidance in creating a plugin. Scenario: I have created a custom post type (CPT), now I need to ...
0
votes
1answer
315 views

Add query string variables to all hyperlinks URL matching a specified domain

This is my case. Supposing in my plugin dB table I have the following stored field name and values: argument_1= 'test' argument_2= 'test2' And I want to add a new string query string variables to ...
0
votes
1answer
115 views

Widget HTML Display Problem

Hi I have created a plugin that places a Google Translator into a text widget in Wordpress. I have setup shortcode to do this - and the shortcode seems to be outputting the correct HTML, except that ...
0
votes
1answer
151 views

Wordpress multiple user roles accessing on their information on one site?

I intend to use Wordpress for the proof-of-concept of a cloud-based SaaS application I am building. My research into multi-tenancy and Wordpress only sheds insight into multiple sites sharing the same ...
0
votes
1answer
54 views

loop and in admin header problem

I have a WP_Query loop running in a function that's attached to the 'admin_enqueue_scripts' hook add_action( 'admin_enqueue_scripts', 'rs_get_scripts'); function rs_get_scripts() { //enqueue js ...
0
votes
1answer
325 views

How can i list current author's categories?

My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" ...
0
votes
1answer
132 views

Wordpress get_avatar function not correct working

My code doing this, listing which author have posted in the current category. But get_avatar function not correct working. Im Using Simple Local Avatar Plugin. It is working author.php don't have any ...
0
votes
1answer
51 views

How to list posts that appear in two categories

I would like to list all posts that appear in the current category being viewed that are also posted to a second category. Example Pictures : LINK For instance, a listing of the common posts between ...
0
votes
1answer
197 views

Adding JS function as third parameter in do_action

I have this JS function named as "myjsfunction()". function myjsfunction() { jQuery('#html_admin_show').hide(); jQuery('#html_admin_edit').show(); } One limitation is that I cannot edit the ...
0
votes
1answer
1k views

How to change post status in hook?

I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to ...
0
votes
2answers
39 views

How do i remove the title from a specific page

Hi need to remove the title of a specific page, this one. I could do add_filter( 'the_title', ai1ec_remove_title ); function ai1ec_remove_title( $title ) { if( 'Calendar' === $title ) { ...
0
votes
1answer
98 views

How do I replace title with my plugin?

I am developing a plugin for WordPress 3.5. My blog's default title is "Test". Here is some code of my plugin: add_filter('wp_title', 'my_replace_title'); function my_replace_title(){ return ...
0
votes
3answers
486 views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
0
votes
1answer
138 views

Custom Fields for Page Edits

Currently using the code below for SEO. When the Code Below if added to the header works perfectly but then you have to manually create the fields that are queried. Most Clients hardly get around the ...
0
votes
1answer
134 views

Remove image in post when it's removed in media library

As the title says, I want to automatically remove a specific image in all posts where it's used when I remove the image from the media library. Because at the moment, if I remove an image from the ...
0
votes
1answer
170 views

Breadcrumb is not generating the correct post page url

I have created a custom posts type cities and the code for its deceleration is register_post_type('City',$args); $labels = array( 'name' => _x('Cities', 'post type general name'), ...
0
votes
1answer
133 views

Virtual Page with Registration form

Working on a plugin, which is intended to provide a registration on front-end, to let users register. I am trying to create a Virtual page, which would display the form. Trying to create URL like ...
0
votes
1answer
403 views

fatal error get_page_permastruct()

I'm getting the following error Fatal error: Call to a member function get_page_permastruct() /link-template.php on line 276 when I invoke the in class constructor the wp_insert_post($new_post);. ...
0
votes
1answer
228 views

Practical Solutions to HTML5 Video on WordPress

I was directed here from Stack Overflow -- We work with clients who have WordPress sites and one thing we keep struggling with is implementing HTML5 video across all browsers and devices in the ...
0
votes
1answer
358 views

wp_insert_user keeps echoing values

This is bugging the heck out of me. Essentially I've narrowed the issue down to one line of code: $user_id = wp_insert_user ($userdata); From what I can tell nothing should be echoed here, but I ...
0
votes
1answer
720 views

Widget update function not saving values

Hello WordPress Answers! I'm having trouble with the widget update function saving values correctly, but first let me explain the situation. I'm writing a simple news ticker widget plugin, which ...
0
votes
1answer
123 views

An adiitional function fires on my AJAX submit

I am working on a small community style website for my family to use. Mainly it is a small version of a social network so my nieces and nephews can have fun with each other. I have set up "freinding" ...
0
votes
1answer
95 views

Making a Custom Post Type Publish Loop

I want to re-publish all previously published products of a custom post type. Let's say the post type is "events" This is what I was thinking something like this: $args = array( 'post_type' => ...
0
votes
1answer
42 views

Plugin options page - save two related options as one entry

I created an options page for my plugin where the user can specify image dimensions which will be saved for later use. So far the image dimensions are entered by the user in one input field like ...
0
votes
1answer
210 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 ...
0
votes
1answer
65 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 ...
0
votes
2answers
432 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
1answer
52 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
137 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 ...
0
votes
1answer
234 views

Select options not reloading after form submit

I have two forms. One for adding, one for deleting option values. Deleting and adding works, but I have to manualy reload page to see changes in select part. How to make theme apper after submit? ...
0
votes
1answer
54 views

Get URL of Post You Are Editing

I can't seem to find this anywhere, Is there a way to retrieve the URL of the post (which is of a custom post type) you are editing. Basically I want to somehow get the same URL that shows up like ...
0
votes
1answer
143 views

custom comments form for custom post type

Hello everyone I am creating a theme dedicates to hotels display and booking in which I have created a custom post type 'Hotels' so now I want a mechanism to book the hotel rooms and a "book now" ...
0
votes
0answers
15 views

replace plugin .po without modifying plugin core? [duplicate]

Possible Duplicate: Using customised language file for Event Organiser plugin? I'm using a wp plugin that includes an english .po file containing all the UI text strings. I'm not ...
0
votes
1answer
117 views

Best practice to include custom user styles in widgets

What's the best way to include custom user styles in widgets? For example adjust colors for buttons, borders etc. without having the user to develop a complete new stylesheet.
0
votes
1answer
67 views

Nothing happens on Wordpress Update command

I made a function in Wordpress, which should update one field status to 0. But no changes are made to the database. I don't know what is the reason. Can someone please help. I tried looking into ...
0
votes
1answer
116 views

Looking for Hook that is fired after a plugin or wp upgrade is installed/updated

I'm trying to write some code to sms me whenever someone updates/installs a plugin, or updates the WP core, but I can't seem to find a hook that gets fired when this happens. Does anyone know if there ...