“Print to printer” functionality in a plugin
check out WP Print Friendly plugin which extends WordPress template system to support printer-friendly templates. Works with permalink structures to support nice URLs.
check out WP Print Friendly plugin which extends WordPress template system to support printer-friendly templates. Works with permalink structures to support nice URLs.
I have found the issue. I was making changes to the plug-in code and transferring it directly (via ftp). I forgot to deactivate and activate the plug-in. Doh!
Do I understand right that you need to pull information from WP in JavaScript code? In that case it would be appropriate to use WP’s Ajax handler. See AJAX in Plugins in Codex. If native feeds are very close to what you need another option is to register custom feed with add_feed() and use it … Read more
Of course I shouldn’t save my XML Array in $data. -.-
Read the WordPress codex, specifically http://codex.wordpress.org/Plugin_API and if you are looking to create tables read http://codex.wordpress.org/Creating_Tables_with_Plugins. Make sure you remove them if the plugin is uninstalled.
I use this for my first theme please ignore little syntax error if any lol update: All the following code should go into your functions.php file Probably the best (and definitely the easiest) way to make a Theme Options Page is to use the WordPress Settings API. One note… everywhere you see THEME_NAME in my … Read more
Check out the Administration Menus section in the Codex, I actually used it pretty heavily over the last couple days to create a sub-menu and it helped a lot. It goes into detail on the top level menus as well. You’ll specifically need the add_menu_page() function to create the top level menu, as well as … Read more
I think that the best way to set the default category is in the wp-admin: Settings > Writings > Default post Category However, I think you’re looking for setting more than one category by default. If you look the documentation of wp_insert_post_data, there isn’t any key such as post_category. Perhaps, you should use publish_post Runs … Read more
If you look at your current setup, you can see that your add_image_to_save_post function is fired off when wp_insert_post is performed. wp_insert_post is fired off when a post is inserted into the database, and as you may know, as soon as you click “Add New” in WordPress a database entry is created, thus pulling on … Read more
Don’t know of a plugin but a good approach would be: to crate a custom post type (shared_revisions). add a metabox to post edit screen which will have an option to save the post changes as a sheared_revision and store the original post id as postmeta of the sheared_revision post. add a metabox to your … Read more