SEO microdata in WordPress

Although you do not have to go crazy with SEO and at the end of everything what's important is the content original and valuable we must not lose track of everything that helps to better position our site in the search engines, and microdata is a contribution that you should not underestimate.

The microdata are codes that allow a webmaster to create custom elements and apply attributes and meaning to them. Let's see, I still have not explained myself, let's see a case …

For any human being that is a person's name, but for machines it is not so obvious, as it is not they will know if it's a street name, a company name, they do not even know it's a name, they're just letters. It is information that you do not have Schema.org and you should provide, no doubt.

Well, with HTML5 microdata we "tell" searchers what they are those letters, what do they refer to? With this new concept of microdata, on the rise, search engines will have more information on how to index the information you provide, knowing if that type of data are addresses, products, people or what. Come on, that adds points in SEO.

Well, if you want to start working with the HTML5 microdata you can do it in the simplest way, with a fantastic WordPress plugin: Microdata for WordPress .

Once downloaded and activated what it does is add a new button in the WordPress editor that, when pressed, offers you a series of possible microdata (schemes) to choose from , then, fill in the necessary data to give "meaning" to the publication, to include the microdata related to the chosen scheme.

Once the fields are completed, when giving the " Save changes " button is added to your entry with a code in brackets, which contains the microdata.

A series of default schemas are defined, and you can not add more, but you can add or modify fields of each scheme by modifying the file types.php from the "classes" folder of the plugin, now, do it with caution.

If you have any doubts about the use of the plugin, here is a video that shows how it is used … [19659003]

You can download the plugin at the following link:

[download id=”138″]

Let HTML5 be with you!

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

WordPress 3.3 before December 13 • WordPress Help

If everything goes as expected the version WordPress 3.3 definitive will be ready before December 13 (maybe on Monday 12). Today afternoon (Spanish time) the RC1 version will surely be ready, and from there to the definitive there are only 2 weeks.

The translators that are subject, that there are a couple of changes and pending consolidations where they are going to change some important things (about the News WordPress ), but in a couple of days you can start to give cane and have the translations ready to have a WordPresseras Christmas, in which to tangle and make tests with the new version, enjoy the news from WordPress 3.3 .

WordPress native editor in the comments form • WordPress Help

Why have you tried a lot of plugins to give the comment form text box more features? and to which none has completely satisfied you for some reason? So what would you think about the comment form having the native WordPress editor? .

Once downloaded and installed you can adjust some options, as if you will see the Visual and HTML tabs, if you will allow add media or if you will allow all the functionality of the editor or it will be limited.

You save and you already have a comment form with everything your visitors may need.

Note: in the escolaWP entry you have the documentation complete in case you do not want to install the plugin and prefer to apply the code to your liking

Recent entries of the entire network in WordPress multisite • WordPress Help

/ **

* List of recent entries in the entire Multisite network

*

* @uses get_blog_list (), get_blog_permalink ()

*

* @param int $ size The number of results to obtain

* @param int $ expires Seconds until the transient cache expires

* @return object Contains blog_id, post_id, post_date and post_title

* /

function wp_recent_across_network ( $ size = 10 $ expires = 7200 ) {

if ( ! is_multisite () ) return false [19659012];

// The results are cached with the WordPress Transients API

// We obtain an existing copy of our transient data

if ( ( $ recent_across_network = get_site_transient ( 'recent_across_network' ) ) === false ) {

// If there is no transient we regenerate the data and save a new transient

// We prepare the SQL query with $ wpdb

global $ wpdb ;

[19659064] $ base_prefix = $ wpdb -> get_blog_prefix ( 0 ) ;

$ base_prefix = str_replace ( '1 _' '' $ base_prefix ) ];

// Because the function get_blog_list () is currently abandoned

// due to the high consumption of resources we will use

// $ wpdb to execute our SQL query. Since the query can

// consume a lot of memory we will store the results using the API Transients

if ( false === ( $ site_list = get_site_transient ( 'multisite_site_list' ) ]) ) {

global $ wpdb ;

$ site_list = $ wpdb -> get_results ( $ wpdb -> prepare ( 'SELECT * FROM wp_blogs ORDER BY blog_id' ]) ) ;

set_site_transient ( 'multisite_site_list' $ site_list $ expires [1 9459007] ) ;

}

$ limit = absint ( $ size ) ;

// We unify the results of wp_posts in all sites of the Multisite in a single result with MySQL "UNION"

foreach ( $ site_list as $ site ) {

if ( $ site == $ site_list [ 0 ] ) {

$ posts_table = $ base_prefix . "posts" ;

} else {

$ posts_table = $ base_prefix . $ site -> blog_id . ] "_ posts" ;

}

$ posts_table = esc_sql ( $ posts_table [19659012]) ;

$ blogs_table = esc_sql ( $ base_prefix . 'blogs' ] ) ;

$ query . = "(SELECT $ posts_table.ID, $ posts_table .post_title, $ posts_table.post_date, $ blogs_table.blog_id FROM $ posts_table, $ blogs_table n ";

$ query . = " tWHERE $ posts_table.post_type = 'post' n" [19659012];

$ query . = " tAND $ posts_table.post_status = 'publish' n" ;

[19659064] $ query . = " tAND $ blogs_table.blog_id = {$ site-> blog_id}) n" ;

if ( $ site ! == end ( $ site_list ) ])

$ query . = "UNION n" ;

else

$ query . = "ORDER BY post_date DESC LIMIT 0, $ limit" ;

}

/ / A little cleaning and execute the query

$ query = $ wpdb -> prepare ( $ query ) ;

$ recent_across_network = $ wpdb [19659067] -> get_results ( $ query ) ;

// We adjust the Transients cache so that it exudes every two hours

set_site_transient ( 'recent_across_network' $ recent_across_network 60 * 60 * ] 2 ) ;

}

// We format the HTML output

$ html = [19659046] '

' ; foreach ( $ recent_across_network as [19659013] $ post ) { $ html . = '

' . $ post -> post_title . '

' ; } $ html '

' [html; }

WordPress 3.3 beta 4 now available

Well here it is, as I warned you we already have the beta 4 of WordPress 3.3 with some news about the previous beta, like a code cleaning in the area of ​​administration, solution to small failures, the petardez of the pointer of the novelties, update to jQuery 1.7.1 and some more things.

If you dare to try it, that the following will already be versions " release candidate ", you can download it or give it a try in WordPress beta testing .

Thumbnails by default in all entries

The input thumbnails in WordPress have already been introduced for some time, specifically in version 2.9. And, possibly, it has happened to you as I did, that you updated your theme to support the entry thumbnails and look where you putada !, now it turns out that all your previous entries have no miniature and remain feuchas in your newly tuned site.

Well, do not worry, that is easy to fix that little problem as always …

If something like this has happened to you, or you just do not want to go putting thumbnails manually in each entry but you prefer to put one by default, there is a simple solution.

You can do it in two ways, as always:

1. Add miniature by default with code

Here the idea is like adding a kind of gravatar by default. What you have to do is locate the "loop" and add the following, of course with the CSS that you like or suits your theme:

2. Add miniature by default with plugin

If you do not manage with the code, or simply prefer the facility to visually manage the miniature by default, you can use the plugin Default post thumnbail which makes your task easier.

Once active, it has a settings page in which to choose the thumbnail that will go by default, and change it whenever you want.

 default post thumbnail "title =" default post thumbnail "width =" 544 " height = "278" class = "aligncenter size-full wp-image-10942" srcset = "http://bootstrapx.com/wp-content/uploads/2018/06/default-post-thumbnail.png 544w, https: //ayudawp.com/wp-content/uploads/2011/11/default-post-thumbnail-500x255.png 500w "sizes =" (max-width: 544px) 100vw, 544px "/> </p>
<p> Hala, ya it is!, that you enjoy it </p>
<div id=

NOTICE : this publication is from two years ago or more, if it is a code or a plugin, it might not work in the latest versions of WordPress, and if it is a news item, to be obsolete. Then do not say that we have not warned you.

Loading …

That may also help you: