Change sidebar headers from H1?

The tags used for the headings would be set wherever the sidebars are registered. Look for register_sidebar() in the theme’s functions.php file (or a file that has been included into the functions file). It will look like this (example from here): register_sidebar( array( ‘name’ => __( ‘Main Sidebar’, ‘textdomain’ ), ‘id’ => ‘sidebar-1’, ‘description’ => … Read more

Block comments from search engine indexing

To my knowledge, there is no easy way to achieve what you want. What I think you would need to do is two parts: Detect page views by search engine spiders In your page templates, only include include the comments when the viewer is not a search engine spider. Should be straightforward, but not trivial. … Read more

Is tag default in WordPress?

Well, it’s not a stupid question at all… wp_title is a template tag and it was used for a long time (since 1.0.0) to put <title> tag in the header. This way plugins were able to modify the title with filters. In WP 4.4 it was about to be deprecated, but that idea was abandoned … Read more

SEO meta description and title tag Yoast SEO

Yoast uses wp_head hook to output the meta description tag. Make sure you have this line in your <head>: <?php wp_head(); ?> For title tag, you can simplify the code by using one function call: <?php wp_title( ‘|’, true, ‘right’ ); ?> The wp_title uses a filter (same name wp_title) to let users change the … Read more

Blog not indexed [closed]

Actually your site is indexed all 176 pages. It would probably help your search results if you changed your permalink structure to something other than default. You should also get a yourself a Google Webmaster Tools account so you can see how your site gets indexed and crawled.

How to make ajax content indexable by search engines?

Any reasons you couldn’t put an anchor link to the actual page in your tab control? Then use jQuery to make sure it returns false and doesn’t “work” for normal visitors. In fact, that’s what the jQuery Tabs control page suggests: Tabs supports loading tab content via Ajax in an unobtrusive manner. The HTML you … Read more

Migrating from other CMS to WP – losing SEO juice?

You should use a sitemap module to generate a list of URLs created by XOOPs [e.g. xSitemap]. Then you have to set up your .htaccess to 301 redirect each URL to its corresponding page in the new WordPress instance. Finally, you should consider installing a WordPress plugin like Redirection to check for 404s and redirect … Read more

add post content in meta description in yoast

Here is a safe and Yoast preferred method add_action(‘wp_head’,’add_custom_meta_description_box’); function retrieve_var1_replacement( $var1 ) { global $post; return strip_tags($post->post_content); } function register_my_plugin_extra_replacements() { wpseo_register_var_replacement( ‘%%mycustomdesc%%’, ‘retrieve_var1_replacement’, ‘advanced’, ‘this is a help text for myvar1’ ); } add_action( ‘wpseo_register_extra_replacements’, ‘register_my_plugin_extra_replacements’ ); You can now replace your %%excerpt%% with %%mycustomdesc%%

Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields

You can use the update_post_meta function to insert the Yoast Plugin data. Yoast uses 3 post meta keys for each post: _yoast_wpseo_title ( use for SEO title ) _yoast_wpseo_focuskw (For meta keywords ) _yoast_wpseo_metadesc (For meta descriptio ) You can find all these meta key under postmeta table $new_id = wp_update_post($array); update_post_meta( $new_id, ‘_yoast_wpseo_title’, ‘SEO … Read more

How to add nofollow on all external links without plugin?

This is how I would do it : 1/ create a filter to access the post content before it’s displayed on page. See http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content 2/ Inside your fonction called (ie : my_the_content_filter in the example from the Codex) adapt this code : https://stackoverflow.com/questions/5037592/how-to-add-rel-nofollow-to-links-with-preg-replace Cheers !

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