How do I create a way for users to assign categories to a post from the frontend?

I wanted to provide you with a few ideas but once I started I couldn’t stop myself and wrote this little plugin with an obscure name to get you started. <?php /* Plugin Name: WPSE Crowded Cats Plugin URI: http://wordpress.stackexchange.com/questions/43419/how-do-i-create-a-way-for-users-to-assign-categories-to-a-post-from-the-frontend Description: Allow visitors to change categories of posts. Ready to use with custom taxonomies and … Read more

get_delete_post_link redirect

To redirect after the use of get_delete_post_link() it’s probably easiest to hook into the trashed_post action: Code: add_action( ‘trashed_post’, ‘wpse132196_redirect_after_trashing’, 10 ); function wpse132196_redirect_after_trashing() { wp_redirect( home_url(‘/your-custom-slug’) ); exit; } Or you could make it dependent on the according $_GET variable by hooking into the the action parse_request: Code: add_action( ‘parse_request’, ‘wpse132196_redirect_after_trashing_get’ ); function wpse132196_redirect_after_trashing_get() … Read more

How to get shortcode working from custom meta field

You can do this by using ‘the_content’ filter. That way, WordPress will treat the content as it was came from the editor field and execute all the shortcodes: <?php $meta = get_post_meta($post->ID, ‘intSlider’, true); ?> <div id=”sliderWrap”> <div id=”slider” class=”floatLeft”> <? echo apply_filters(‘the_content’, $meta); ?> </div> </div> Just be careful because it will wrap the … Read more

Publish pending article from front end with a button?

First create a function that will print the publish button : //function to print publish button function show_publish_button(){ Global $post; //only print fi admin if (current_user_can(‘manage_options’)){ echo ‘<form name=”front_end_publish” method=”POST” action=””> <input type=”hidden” name=”pid” id=”pid” value=”‘.$post->ID.'”> <input type=”hidden” name=”FE_PUBLISH” id=”FE_PUBLISH” value=”FE_PUBLISH”> <input type=”submit” name=”submit” id=”submit” value=”Publish”> </form>’; } } Next create a function to change … Read more

front end logo upload like happytables

I actually wrote this for Happy Tables so should be able to give you a couple of pointers, though I don’t have time to go into too much depth at the moment. We use this “image well” on tables tables a fair bit, it’s basically the drag/drop upload from the WordPress upload. Similar to something … Read more

Update user meta using with ajax

Alright, there’s a few things that isn’t standardized WordPress so I’ve put together a minimal script which I’ll explain piece by piece. Hopefully clear things up for you by the time you get to the end. HTML Form Below is a very simple HTML form. We’re going to use javascript to listen for submission and … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedusedueduseduseduedueduseduedu