How to change the position of Jetpack sharing icons? [closed]

remove_filter( ‘the_content’, ‘sharing_display’, 19 ); remove_filter( ‘the_excerpt’, ‘sharing_display’, 19 ); add_filter( ‘the_content’, ‘share_buttons_above_post’, 19 ); add_filter( ‘the_excerpt’, ‘share_buttons_above_post’, 19 ); function share_buttons_above_post( $content=”” ) { if ( function_exists( ‘sharing_display’ ) ) { return sharing_display() . $content; } else { return $content; } } Change the hook. Related info https://wordpress.stackexchange.com/a/12826/9884

Strip links from the_content

Use get_the_content(). You just need to use it cleverly. By default, get_the_content() returns the raw, non-formatted post_content field from the post object. In order to get formatted text, you need to run the result from get_the_content() though the the_content filters. This is exactly what the_content() does by default. You can adjust your code to the … Read more

$content = $post->post_content; with formating

If i get your question correct, you want the post_content formatted like the content put out by the_content, right? Change your upper code like this: global $post; $content = apply_filters(‘the_content’,$post->post_content); This does everything to your content that would be performed when outputting it by the_content(); If you only want the p and b tags, you … Read more

Output the_title() inside the_content()

You could achieve that with a filter on the_content: function my_the_content_filter( $content ) { global $post; if( ‘testimonial’ == $post->post_type ) $content .= ‘ <em>’ . $post->post_title . ‘</em>’; return $content; } add_filter( ‘the_content’, ‘my_the_content_filter’, 0 );

put the content of a single post into og:description

get_the_content() must be inside the loop, in header.php you can do this (don’t forget to scape the content to use it as attribute): if (is_single()) { while (have_posts()) { the_post(); $content = get_the_content(); $desc=”<meta property=”og:description” content=””. esc_attr($content) .'”>’; echo $desc; } } or even better, in your functions.php hook the wp_head action; also, I recomend … Read more