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

WordPress get_the_content get child element like p value

WordPress function get_the_content automatically remove html tags from the content, So fetch only p tag content is not possible with using this function. you can use post excerpt to fulfill your requirement. Each post has section in admin called Excerpt It you are unable to see the section in the admin please check screen option … 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

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