How to display and use all existing tags at my write-post-at-frontend-panel?

try something like this: <?php $taxonomies = array( ‘wissen_tags’ ); $args = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => false ); $terms = get_terms($taxonomies,$args); if (count($terms) > 0): i = 0; foreach ($terms as $term): ?> <div class=”wissen_tag_list”> <input type=”radio” value=”<?php echo $term->term_id; ?>” name=”wissen_tags” class=”wissen_tag_list_ckb” <?php if ( $i == 0 ) … Read more

Add javascript when post is published

To enqueue scripts on the admin side, you should use the admin_enqueue_scripts hook. In this callback I check that are on the appropriate page (i.e. the page where you edit posts / post types), using the passed $hook argument. Optionally you can check if the post is of a specific type (in case this is … Read more

Publish post when edit post form submitted with enter/return pressed on keyboard

you may add a filter on wp_insert_post_data: add_filter( ‘wp_insert_post_data’, ‘my_force_publish_post’, 10, 2 ); function my_force_publish_post( $data, $postarr ) { if ( ! isset($postarr[‘ID’]) || ! $postarr[‘ID’] ) return $data; if ( $postarr[‘post_type’] !== ‘inventory’ ) return $data; $old = get_post( $postarr[‘ID’] ); // the post before update if( $old->post_status !== ‘draft’ ) { // force … Read more

WordPress prompt checklist before publish?

Create new plugin and add this as your the content: <?php /* Plugin Name: [CR]TestDropIn Plugin URI: http://bayu.freelancer.web.id/ Description: A barebone plugin to test whatever wordpress API you want to test Author: Arief Bayu Purwanto Version: 0.0.1 Author URI: http://bayu.freelancer.web.id */ add_action(‘admin_head’, ‘xxx_admin_hook’); function xxx_admin_hook(){ ?> <script language=”javascript” type=”text/javascript”> jQuery(document).ready(function() { jQuery(‘#post’).submit(function() { //alert(‘Handler for … Read more

Restrict the Number of Posts an Author can Publish (over time)?

Closest thing out there seems to be: http://www.spaw.it/359/wordpress-plugin-limit-post-creation/, but it only sets a single, hard limit. I think your best bet is to utilize this WordPress thread with code to limit number of posts for registered users: http://wordpress.org/support/topic/limit-the-number-of-posts-a-user-can-make?replies=18 You would need to change the $count_posts var to only count posts made within your time-frame…

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)