Shortcode interpreted as text

This is invalid syntax. See shortcodes like HTML: Opening delimiter [, name intern, empty space, attribute name, equal sign =, attribute value (enclosed with quotes (‘ or “), closing delimiter ]. Doubled delimiters force the shortcode to be shown as it is, the shortcode handler will not be used. [[Intern: Termine/News]] is wrong, you need … Read more

How can I add an “ALL CATEGORIES” entry in wp_dropdown_categories?

Should be easy to do (check the codex: wp dropdown categories) <h2><?php _e(‘Categories:’); ?></h2> <div> <?php wp_dropdown_categories(‘show_option_all=ALL CATEGORIES&show_count=1&hierarchical=1’); ?> </div> p.s if you want to wrap with translation this is the way: <h2><?php _e(‘Categories:’); ?></h2> <div> <?php wp_dropdown_categories(‘show_option_all=”.__(“All Categories’, ‘your_text_domain’).’&show_count=1&hierarchical=1′); ?> </div>

Display custom taxonomy attached to the post on post single page

You can get every Taxonomy by $categories = get_the_terms( get_the_id(), $taxonomy-slug ); if ( is_array( $categories ) ) { foreach ( $categories as $category ) { echo ‘<a href=”‘ . get_term_link( $category->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.'</a> ‘; … Read more

How to do some action weekly?

Did you try this plugin? http://wordpress.org/extend/plugins/scheduled-post-delete/ //// Sorry for my mistake, I understood you wrong. Try by pasting this in your functions.php: function auto_cat_remove() { global $post; wp_schedule_single_event( time() + 604800, ‘remove_news_cat_event’, array( $post->ID ) ); } function remove_news_cat_func( $post_id ) { global $wpdb; $category_id = get_cat_ID( ‘news’ ); $wpdb->query( $wpdb->prepare( “DELETE FROM $wpdb->term_relationships WHERE … Read more

How to add a post without assigning to a category?

Ok, I found the solution to the question I asked above. It is possible to get such permalinks by using plugins like http://wordpress.org/extend/plugins/custom-permalinks/ (I tried it and worked) http://wordpress.org/extend/plugins/permalink-editor/ The first plugin “custom-permalinks” allows admin to edit the slug including category. So, it is now possible to make the permalink in anyway you want. This … Read more