Change description of my Jetpack facebook shared links [closed]

This part comes from the function comment_form() which is called by your theme, probably in comments.php: ‘comment_notes_after’ => ‘<p class=”form-allowed-tags”>’ . sprintf( __( ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’ ), ‘ <code>’ . allowed_tags() . ‘</code>’ ) . ‘</p>’, You can filter it out with a simple plugin: <?php … Read more

Setting page title and keywords from PHP code

You can use the wp_title filter to modify the HTML document title, and you can use the wp_head action to hook in a custom HTML meta link. e.g.: <?php function wpse46249_filter_wp_title( $title ) { // $title contains the default document title // output by WordPress. Modify it here however // you want. $some_custom_title_content=”CUSTOM TITLE CONTENT … Read more

Images inside post title

A search and replace solution does sound viable. I wouldn’t do it via JavaScript, though. add_filter(‘the_title’, ‘wpse60174_logo_in_title’, 10, 2); function wpse60174_logo_in_title($title, $post_id) { // Add a <span> around the company name return preg_replace(‘~\bCompany\s+Name\b~i’, ‘<span class=”company”>$0</span>’, $title); } With the extra span in place it is just a matter of applying some custom styles to it. … Read more

Title tags show twice

Go to the header.php file in your template folder and make sure that between the title tags, there’s only this code: <?php wp_title(”);?> That should do the trick. This error is a combination of your template files with standard settings of the Yoast SEO plugin.

WordPress widget title coding

The problem is pretty simple: Some widgets do have a title, while others don’t. As long as the title filter is present, it works. Example of what the plugin might have: echo apply_filters( ‘widget_title’, $instance[‘title’] ); If that filter is not present, there won’t be a title.

convert post title to image

In General The problem here is that you’re calling a WordPress function within a PHP file where WordPress isn’t loaded. Including WordPress in your image.php file might work if you include the post ID <img src=”https://wordpress.stackexchange.com/wp-content/themes/v2/image.php?post_id=123″ /> But imagine if you have 100 images on a single page, then you would be running 101 instances … Read more