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
0answers
54 views

How to add custom button to new media upload interface

I am developing a plugin and i want to add my own button to the wordpress media upload interface (WP version 3.5). Right next to the standard 'insert into page' button, i want my button to be there, ...
0
votes
0answers
22 views

uninstall.php file in Plugin to clean DB

I am aware that WordPress provides Plugins a nice way to clean up the db if the Plugin is deleted by providing the uninstall.php hook. You just have to place the cleaning code and it works. But my ...
0
votes
2answers
50 views

How to embed a new string in url?

I am creating a custom tours and travel theme in which I have created custom post type Cities, Locations, Destinations and i am using custom permalink structure. /%category%/%postname%/ So now I want ...
0
votes
1answer
24 views

Wordpress is giving a permissions error on plugin submission [closed]

I'm creating a new plugin (based on a previous plugin I created that works). The options pages show up fine but when I submit I get the "You do not have sufficient permissions to access this page." ...
0
votes
0answers
36 views

Plugin works when all in one file, but I get a strange text overlap output when splitting into two files

I am working on a plugin for myself that will export data from a custom table. The following code snippet creates a menu under "Tools" and lets the user select which fields to export (haven't ...
0
votes
1answer
24 views

How to load plugin static data from cloudfront

I am moving my site's static content data to Amazon S3+ CloudFront and i am successful in doing this for most part of my site (no plugin used) except for the plugin section. For the plugin i am ...
0
votes
1answer
62 views

wp-load.php redeclares classes

I am trying to load WordPress options within a standalone PHP file. The file is located in /wp-content/plugins/plugin-name/file.php. I have used the following to open wp-load.php: if ...
0
votes
0answers
50 views

Popup lightbox works in localhost but not in the live site

I created the sample popup plugin. In the code bellow it's working fine in localhost but when I use in the live site it's not working. The code is appear while view using Firebug. But the css is to be ...
1
vote
0answers
38 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 ...
2
votes
1answer
62 views

Add Admin Menu Inside Construct or Init

I thought I was making headway in my WordPress Development education until I ran across the Boilerplate for WordPress plugins and it uses a class object. I'm fine with that and understand those ...
0
votes
2answers
47 views

Really simple query giving error in SQL syntax

I'm sure this is a simple oversight but I cannot seem to narrow it down: global $wpdb; $tablename = $wpdb->prefix . "icrm_folders"; $sql = $wpdb->prepare( "SELECT * FROM %s", $tablename ); ...
0
votes
0answers
36 views

Redirect with message

For a plugin I'm currently developing, I have a custom form. The user can fill in the form and submit. The way I want the form submission to work is: Submit form -> validate data ---> success? ...
0
votes
1answer
55 views

Custom Function for SEO by Yoast plugin

We use a very customized version of WordPress for some of our index/root site pages where we use a custom meta box for custom permalinks. What we are looking for is a custom function that basically ...
0
votes
0answers
52 views

Wysija API - can't find any docs anywhere [closed]

As I mentioned in the title, I can't find anywhere some reference manual about Wysija Newsletters plugin. On my project, I have some users admin area, so user can login to the site and change there ...
0
votes
1answer
72 views

Shortcodes, output buffering, and WordPress functions

I have a couple of long forms which I want to output as shortcodes. Shortcode API indicates that If the shortcode produces a lot of HTML then ob_start can be used to capture output and convert ...
0
votes
0answers
41 views

Custom Wordpress Meta Query

I have a post type (course) that has some meta data associated with it, namely the following two: City and State The two pieces of data above are stored in the postmeta table, with meta_keys ...
-1
votes
1answer
186 views

How to exclude the particular category from the woocommerce plugin?

add_action( 'pre_get_posts', 'custom_pre_get_posts_query' ); function custom_pre_get_posts_query( $q ) { if ( ! $q->is_main_query() ) return; if ( ! $q->is_post_type_archive() ) return; if ( ! ...
0
votes
0answers
37 views

Wordpress installed under Magento - Php not executed in widgets [closed]

I installed Magento and under a subfolder of magento root (wp), I installed wordpress. Everything works well, excepting that php can't be executed if it's defined in widgets. I created this shortcode ...
1
vote
0answers
24 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 ...
0
votes
1answer
125 views

Different registration form for different roles

I have customised the worpress registration page by adding new fields using the Cimy User Extra Fields plugin so my site is now fine for allowing users to register as contributors. I now want to ...
4
votes
2answers
91 views

How to read configuration file in wordpress or PHP

I am not sure how relevant this is,i am working with Java based web-application, so in some cases we need to define some properties which can be used in entire web application like Google API Key ...
1
vote
0answers
20 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 ...
0
votes
0answers
33 views

Click Counter Internal

We have the WP Click Info plugin installed that works well on counting visits to external sites. Is it possible to edit this so that it also counts all clicks on audio files within the site? Would ...
1
vote
1answer
51 views

Proper way to hook wp_get_attachment_url

I am trying to hook wp_get_attachment_url() with my custom implementation. I am trying to get my post images and any other static data from the Amazon S3 and I was wondering if I can configure the URL ...
1
vote
0answers
61 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 ...
0
votes
1answer
129 views

Plugin admin page meta_box toggle and order state not saving

I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0 I'm using meta boxes to hold sections of menu for a plugin. ...
0
votes
0answers
37 views

Trying to understand the action: save_post and an incomplete $post object

I begin with a fresh post (i.e., add New). I fetch (via Ajax) an image (read: src) from another site. In the process of saving (action: save_post) I want to PHP copy() the image to my local server and ...
0
votes
0answers
26 views

Strange / unexpected results with add_action('save_post')

As I'm sure plenty of you know already, 'save_post' will actually fire multiple times for a given save. Rather than copy / paste the same 12+ lines of code every time I need just a single fire, I ...
1
vote
1answer
15 views

Archive - same title for the first two posts

I created an archive page called archive.php Here I include header / footer and this code: <?php if (have_posts()) : while (have_posts()) : ?> <h1 class="entry-title"><a ...
0
votes
0answers
50 views

Plugin Update for Self-Hosted Plugin

I would like use a "private" update server for a plugin I have create ... the code is based on this: https://github.com/jeremyclark13/automatic-theme-plugin-update The server would be found and the ...
1
vote
0answers
31 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"/> ...
0
votes
1answer
87 views

Query Problem - Show posts within category 'x' that have a custom field between 'y' and 'z'

I'd like to display all posts within a given price range. For example: When a user inputs 100 and 1000 (in two separate form fields) - my site will display all posts that have a custom field called ...
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 ...
0
votes
0answers
67 views

why ob_get_content is making mess [closed]

My new, just developed plugin is making a big mess. I'm using ob_get_content() to wrap included php files. On some action executed on other plugins(for example updating a post) the page is getting ...
2
votes
1answer
30 views

nonces in custom oop plugin

How to use the check_admin_referer method with oop? If I use as it follows the function can not be called: class MyClass{ function __construct(){ if( isset($_POST['my_nonce_field']) ...
0
votes
0answers
15 views

Wordpress custom plugin admin tasks

how do I make an edit page to my custom Plugin? What I mean. I have in my plugins admin area items listed and initialized with an id and title, if I choose one element to edit where do I send the ...
0
votes
0answers
16 views

Allow Authors to add category in Multisite Inatllation [duplicate]

I am looking for a way, to allow authors, to add categories. Refering to this post: How would I increase the Author Role to be able to add a new category? I tried this function: function ...
0
votes
0answers
27 views

How to rename the core files in WordPress theme programmatically?

Is it possible to create a custom function to rename theme files? For example: footer.php is the file; When I activate a plugin it's renamed to footer1.php, or whatever, when I deactivate the plugin ...
4
votes
2answers
215 views

Query Posts by Custom Field 'Price'

I'd like to display all posts within a given price range. For example: When a user inputs 100 and 1000 (in two separate form fields) - my site will display all posts that have a custom field called ...
0
votes
0answers
46 views

how to add interstitial page?

I am trying to get get the interstitial page. I have a plugin that fetches articles from an API. What I want is when user click on fetched article's link it should take them to a dynamic interstitial ...
0
votes
0answers
19 views

NextGen XML Issues

I am using NextGen Gallery to generate an XML file via PHP. I have a jQuery plugin that is loading a photo gallery from that XML feed. I've gotten the two to work together. It works great when it ...
0
votes
2answers
76 views

Yet another wp_insert_post infinite loop. What is wrong?

I am writing a plugin that enables subscribed users to submit posts of a custom type, and I am trying to implement this feature via shortcodes. Now the problem is that instead of inserting one post, ...
-1
votes
1answer
51 views

How to remove a class

Is it possible to remove classes from a plugin and add theme into to theme? I need to modify Woocommerce WP_Checkout class but I want to move it to my theme folder so if woocommerce will be updated ...
0
votes
0answers
15 views

Odd behaviour caused by $wpdb->last_result and language switching

This has me scratching my head. The following code is called on two pages: http://example.com/somepage/ http://example.com/fr/somepage/ class SomeClass { function __construct(){ global ...
0
votes
0answers
23 views

Creating URL for custom php file

I'm having some trouble trying to figure out how to make a custom URL in the admin area for my plugin. I already know how to use the add_menu function, but I need to create a sub-page for the plugin ...
0
votes
0answers
37 views

What is the Correct Way to Use get_terms in a Plugin?

I'm currently writing a plugin for restaurant menu management. I have a custom taxonomy that I would like to retrieve the terms for from any page or post. Currently I have a sample dropdown list ...
0
votes
0answers
76 views

Wordpress plugin custom admin screens

I have managed to create my private messaging system, but now I want to make the user experience similar to both front-end users and to back end users. What I have is a screen like gmail, which when ...
0
votes
1answer
52 views

Data Validation, dynamically generated fields (select for example)

Working to secure my plugin, I'm not sure what (if anything) to do about output such as dynamically generated select fields. For example, I have a country code select generated on the backend via PHP ...
2
votes
1answer
97 views

Creating a custom public user page

I'd like to develop a plugin that allows me to have custom user pages. I really like the way the author archive template handles the URL: /author/username. I don't want to rewrite the author_base as ...
0
votes
0answers
6 views

Registration_errors filter logic [duplicate]

I have a function that hooks into the registration_errors filter and adds a registered user to an external db. The problem is that even when the wordpress registration returns an error, the user is ...

1 2 3 4 5 31