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)

1
vote
2answers
5k views

Using AJAX in a plugin to submit form - REALLY confused

Having a bit of trouble using all the Wordpress ajax hooks, and functions. Been reading this post: 5 Tips for Using Ajax in Wordpress But became confused after trying all the code and applying it to ...
0
votes
1answer
100 views

Why doesn't my Table get created?

I am working on creating a table in the DB for a plugin but cannot figure out why the table is not being created. Here's my code: global $ds_swoons_db_version; $ds_swoons_db_version = '1.0'; ...
0
votes
1answer
192 views

Modify code for functions.php with specific twitter user url and hashtags

I am looking to import Tweets with certain hashtags and came across this great response and coding in the link below. My question is how to just get posts from one particular twitter user and will the ...
2
votes
1answer
278 views

Is there a naming convention for database tables created by a plugin?

I have setup my plugin's table to use $wpdb->prefix but aside from that are there any conventions that you should name them; Maybe $wpdb->prefix.'plugin_'.$tablename or something. I can't find ...
0
votes
1answer
768 views

wp_insert_post_data filter to set category

I am trying to set additional "default" categories. I figured by hooking into the wp_insert_post_data filter, I could use $postarr to set the category. It doesn't seem to be working? Can someone offer ...
2
votes
1answer
145 views

Dequeue script, but still use wp_localize_script to pass vars

I need to dequeue some scripts but still have access to the vars passed via their wp_localize_script calls. Is there a way to do that?
0
votes
2answers
150 views

Need Help Determining Where Header Error is Happening

I am currently writing a plugin that contains a report based on a mysql query. I would like to export this query information to CSV. Simple enough, I've done it many times outside of WordPress. I'm ...
3
votes
4answers
3k views

How to change wordpress post title?

How to change just wordpress post title but not menu items. add_filter('the_title', 'wordpress_title'); function wordpress_title(){ return 'New title'; }
6
votes
1answer
135 views

Rewriting every url

I have a question regarding permalinks and rewriting url's. I am writing a translation plugin and I would like to add the language shortcode in my url (Something like ...
0
votes
2answers
6k views

Create New Admin Menu Section - Like how custom post type works, in a way

I've been working with Wordpress off and on for years now, but I haven't gotten entirely immersed with the framework. I have no problem creating plugins that use custom post types, but I'm looking to ...
0
votes
1answer
29 views

Pluging with content for a specific page or post

I'm new to writing WordPress plugins, and I'm running into a snag. A lot of what I've seen is about using actions or filters to manipulate or add content at specific global areas (all posts, on post, ...
0
votes
1answer
6k views

Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin

I'm trying to write to an XML file in a WordPress Plugin. I'm on my local machine, a Mac running MAMP. I have PHP 5.2.13 My code is: $file_handle = fopen('markers.xml', 'w'); $stringdata = "Test ...
0
votes
1answer
60 views

How to exit a plugin's execution mid-stream?

I have a plugin that I want to ensure runs ONLY on singular posts, pages, etc. I'm using the is_singular() function and it works great - except that all it does is return execution to the rest of the ...
0
votes
1answer
48 views

How to link to custom “archive like” page with custom permalink rules “dynamically”

I am working on a plugin where I am trying to create a "archive like" page with permalinks. Here is what I have so far: I've created a query var "experience" I've created custom SQL selects using - ...
0
votes
2answers
228 views

Add admin settings and options

I develop my first wordpress plugin. I have not really found a tutorial "easy to use", so I started it. Currently, the "add_menu" did not add my link to manage settings. Yet when I activate my ...
1
vote
2answers
1k views

Upload to a remote server using wp_remote_post

I'am developing a plugin that will push files to a remote server via http upload. Currently I got it to work with CURL doing something like this: $post = array("post_file"=>"@/path/FILE.EXT"); ...
0
votes
2answers
121 views

can members have multiple registration using the same password?

I have two membership levels e.g MYE 1 and MYE II. I am using wishlish plugin. When a person enrolls in MYE I and then later enrolls in MYE II - they are currently blocked from using the same email ...
2
votes
4answers
1k views

How to restrict plugin's sub-menu pages to admin/subscribers?

I am working on a plugin with 6 submenu pages. I want 5 of them to be accessible by Administrators only and 1 of them to be accessible by Subscribers only. Both user roles will have different ...
0
votes
1answer
79 views

Creating fields in the database

I am newbie to wordpress plugin and this is my first plugin which I am doing now. I want that when the plugin will be activate it will make some predefined fields in the database and also the same ...
2
votes
1answer
2k views

Why is the reset password key missing in the reset password email?

Wordpress 3.2.1 - The reset password URL in the email generated by http://mysite.com/wp-login.php?action=lostpassword does not contain a valid key and so users are unable to reset their password. We ...
1
vote
2answers
167 views

Do you clean up your self-written plugins' at deactivation?

After developing some plugins for myself, some of them is ready to be published. For all, I've written deactivation functions, which deletes the set options, the database, etc. after themselves. But ...
-2
votes
3answers
169 views

Apply function on all action hooks?

Is there an easy way to apply a function on all action hooks? I want to apply esc_attr() to every action hook (in a way that would work from functions.php or a plugin). I figure I would need ...
0
votes
1answer
602 views

HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?

Hi i am currently writing a WordPress plugin that i want to release to the public. I am having a few issues with URL rewrites however. I have got the plugin to redirect to the plugin page ...
1
vote
3answers
4k views

Add post thumbnail from external image with plugin

I'm currently writing a plugin modifying the post content with the wp_insert_post_data filter. While doing that I would also like to add a post thumbnail using an external image url. It doesn't really ...
0
votes
1answer
3k views

How to automatically activate users after registration without activation email?

I want to auto-login my users after signup without an activation email requirement (I'm not concerned about spammers). How might I go about doing this? Thanks!
0
votes
1answer
209 views

Extract Information from post content (using regex?)

I'm trying to replace some custom strings in my content before saving the post. I have got the $data["post_content"] which includes strings like %replaceContent:{type}% . Now I need to extract that ...
0
votes
1answer
283 views

mysql_real_escape_string() error using xml2ary in Wordpress plugin

I created a plugin in order to replace some content in the post with information from a xml file. To parse the file I'd like to use xml2ary and the wp_insert_post_data filter. I got the content ...
0
votes
2answers
196 views

Using jQuery prepend() with file include

I'm working on a plugin that will add a top header bar (similar to the admin bar) directly after the <body> tag to sites. Since this will be used on multiple themes, I can't rely on the various ...
0
votes
1answer
1k views

post content and shortcode content displaying out of order

I've seen a couple of questions that address this problem but I can't seem to get it to work based on the answers given. I have 2 plugins that I've written myself that output content via shortcodes. ...
0
votes
1answer
384 views

Creating a plugin that will display text on every page

I know there is going to be an easy way to do this but I just can't seem to find the best practice for the following; I have a plugin which when complete should generate HTML on every page, I want it ...
0
votes
1answer
228 views

Apply styles to blockquote element with the WYSIWYG editor

I have a blockquote and I can float it left or right if I want by going into the html editor and adding class="alignleft" etc. Is there any way I can make that available to a non tech individual with ...
0
votes
1answer
73 views

should i be checking for jquery before enqueing it in a plugin

At the start of a typical plugin which uses jquery I have something like the following wp_deregister_script('jquery'); wp_register_script('jquery', ...
0
votes
1answer
158 views

rewrite_rules problem

I am using scheduled posts as a event program, by making a loop pick up future posts. Every now and again, the production site starts to show 404's for the single event pages, and to fix it I have ...
0
votes
1answer
2k views

How to create a dynamic page based on form data with a plugin?

I have a form that users fill out. When they finish, they are redirected to a 3rd party site to set up payment options. After completing the payment process, they are sent back to my site with a ...
0
votes
2answers
939 views

How to Resize the Custom Post Images?

am Having Custom Field named as thumb.i want to show the images using these custom fields.i want to be fix the image size. My code is <img class="thumb" src="<?php echo ...
3
votes
2answers
798 views

jQuery in header or footer

From my reading it seems there is a good case for loading scripts like jquery and dependencies into the footer as a preference if possible; however 2 things confuse me which. Firstly the default for ...
1
vote
2answers
855 views

How to bulk send emails

I should send thousands of email in reaction to a specific event, so the email sending is not manual but it's automatic. The server where is hosted my website has an hourly limit for email sending ...
1
vote
1answer
32 views

Which file of wordpress manage plugins functionalities?

Which file of wordpress manage the plugins functionalities. For example if a have to insert another rule in a plugin functionality where i go to modify?
2
votes
1answer
112 views

Where should my plugin POST to?

I'm creating a simple plugin to set a page as a homepage from the list pages (to appear next to edit, preview, trash actions etc), I was just wondering what that the most appropriate/secure place to ...
0
votes
3answers
376 views

Custom feed parameters / Template overriding

Am relatively new to Wordpress development and looking for the best way to customize the output for a specific javascript app that will be pulling in the content dynamically, by using a Wordpress ...
2
votes
1answer
116 views

Workflow and best practice for documentation [closed]

We have been creating a bunch of templates that are very custom and change from time to time but also have a bunch of similar parts from theme to theme. I am looking to streamline the way we create ...
0
votes
1answer
335 views

Save user-specific options in WordPress admin

I'm writing a plugin that need to save user specific option in an admin page. I'm only thinking of adding username-prefix to option, for example: $options = get_option('username-plugin_options'); ...
2
votes
1answer
823 views

Whats the difference between blog_info('stylesheet_url') difference get_stylesheet_uri()

The question is in the title really. What is the difference between blog_info('stylesheet_url') difference get_stylesheet_uri(), and if it's a case that one is newer then which. The codex says: ...
4
votes
2answers
919 views

Make Categories and Tags required in admin

Hello i started from Bainternet solution in this post: don't publish custom post type post if a meta data field isn't valid I made a plugin to make categories and tags required. The ...
1
vote
1answer
384 views

Add a reset button to the options page (using Settings API)?

How do I add a reset button using the Settings API? I use add_settings_field To add a field...is there a hook to add a reset button?
1
vote
1answer
1k views

How to bundle a plugin with a theme, or vice versa

First off, I'm all about separating design and function. In fact, I want to remove some of the functionality from a webcomics management theme I'm developing into a plugin. I expect a person's ...
0
votes
1answer
25 views

Is it possible to have instead mypage.com/?page_id=81 to have mypage.com/cool/?

Is it possible to have instead mypage.com/?page_id=81 (this is just an example, I am talking about all these pages with long custom links) to have mypage.com/cool/ ? Are there any plugins to achieve ...
0
votes
2answers
261 views

wordpress admin plugin menu custom css

I have a plugin that has a top level menu and subsequent submenus. Each one of these pages are going to need their own css and javascript. My code at the moment is: //main menu add_menu_page( "My ...
1
vote
2answers
422 views

add action for displaying posts using a shortcode

I'm developing a simple plugin for letting a user insert a post from the frontend. I have a shortcode [add-post] which a user can put on any page, say, for eg. My Wall Page Now on My Wall Page a ...
4
votes
3answers
1k views

How to output message during plugin activation

I am developing a plugin, but during the activation phrase I am constantly facing bugs. However there is no easy way to display error messages, since echoing stuff would result in 'unexpacted output' ...