Uppercase first sentence in every post

Welcome to WPSE. So I can’t write all the code for you, but I would suggest you look at these main pieces, and then come back here or make new questions if you have followup questions: To alter the content of a post before it’s printed to the screen you could use the the_content filter. … Read more

Hook midway through the_content();?

Use this function ad_content() in replace of the_content() in your template. function ad_content() { $content = apply_filters ( ‘the_content’, get_the_content () ); $content = explode ( “</p>”, $content ); $half_way = ( count($content) / 2); for ( $i = 0; $i < count( $content ); $i ++ ) { if ( $i == $half_way ) … Read more

embed the_content

So I’ve never really found out why oembed urls added via apply_filters(‘the_content’, $output), are not processed while embed shortcodes are. Im still hopeful someone might shed some light on that. I really wanted to use Alex King’s post type formats UI which is why I didn’t follow David’s example. I ended up detecting the input … Read more

Loop after page content

Updating a theme isn’t that hard. But it’s necessary to let it play nice with the current version of the core. Here’re some notes on what you might need to do: Query Templates Post Thumbnails & featured images The query Nowadays, we’re using get_posts() or new WP_Query for such cases, where you need to do … Read more

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

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