Open posts in editor in the ‘Text’ mode by default

Add the following line to your theme’s functions.php: add_filter( ‘wp_default_editor’, create_function( ”, ‘return “html”;’ ) ); Use “html” to set the Text editor tab as default (as shown above), or “tinymce” to set the Visual editor tab as default.

I want to remove the links from the term list returned by get_the_term_list

You could use get_the_terms() and wp_sprintf_l(): function wpse_52878_term_list( $args = array() ) { $default = array ( ‘id’ => get_the_ID(), ‘taxonomy’ => ‘post_tag’, ‘before’ => ”, ‘after’ => ”, ); $options = array_merge( $default, $args ); $terms = get_the_terms( $options[‘id’], $options[‘taxonomy’] ); $list = array(); foreach ( $terms as $term ) { $list[] = $term->name; … Read more

How to link to a alternative page in CSS

Two options. The first would be as you said to determine the browser size using javascript. Then have your code do something where it changes the link if the browser us either above or below a certain size. The second, and this may be your preferred method, would be to use css. If your theme … Read more

Formatting ?

You either need to add such code via the HTML editor (and not switch back to the Visual editor), or else you will need to pass a custom configuration to the Visual editor. I have similar needs, and here’s what I use (in functions.php): // http://tinymce.moxiecode.com/wiki.php/Configuration function cbnet_tinymce_config( $init ) { // Change code cleanup/content … Read more

Add footer.php to WordPress child theme

You have wrong argument for the filter. The first argument of the add_filter is the filter you are hooking up to. In your case it’s the mesmerize_get_footer_copyright. The second argument is the Call back function that would run the filter is called. So change your add_filter to this add_filter(‘mesmerize_get_footer_copyright’, ‘change_copyrightText’, 10,1) ;

write in functions.php

I’m not sure why you don’t just insert the code in the single.php, or use Denis’s solution, but if you want to hook into the_content you can do so by putting the following in your functions.php file: function append_the_content($content) { $content .= ‘PUT YOUR FUNCTION HERE’; return $content; } add_filter(‘the_content’, ‘append_the_content’); This will add directly … Read more

Problem with tag

You can display a shortcode by using two (or three) square brackets at the open and close, e.g. [[[pdf href=”http://www.constitution.org/usdeclar.pdf”]Declaration of Independence[/pdf]]] In my experience, a standalone shortcode just needs two whereas one that wraps needs three on each end, even though I’ve seen it said that it should work just two in either case.

WordPress is converting & to & inbetween [code] brackets

I tracked this solution down from the WordPress Trac ticket found here: http://core.trac.wordpress.org/ticket/6969 The solutions seems to be to add this to your functions.php file: <?php function foobar_run_shortcode( $content ) { global $shortcode_tags; // Backup current registered shortcodes and clear them all out $orig_shortcode_tags = $shortcode_tags; remove_all_shortcodes(); add_shortcode( ‘foobar’, ‘shortcode_foobar’ ); // Do the shortcode … Read more

How can I include PHP-Code to my post?

You can edit the single.php and/or content-single.php files in your theme. Then it depends what you mean by “some”. You could apply some conditions to your code (only certain categories, certain tags, certain specific post IDs only, etc.) You could also create a custom post type “myspecialposts” and create single-myspecialposts.php (codex)

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