2012-03-14, 20:35:16
Thanks to Carlos and n00dles101 I have constructed the following solution with I18N Custom Fields Plugin to have the possibility to change the standard value for every page:
In the template:
I18N Custom Field setting in /data/other/customfields.xml (or set it up in Custom Fields configuration)
You can control robots also with robots.txt in the (sub)domain root.
In the template:
Code:
<?php if (return_custom_field('robots') != '') { ?>
<meta name="robots" content="<?php get_custom_field('robots'); ?>" />
<?php } else { ?>
<meta name="robots" content="index, follow" />
<?php } ?>
I18N Custom Field setting in /data/other/customfields.xml (or set it up in Custom Fields configuration)
Code:
<item>
<desc><![CDATA[robots]]></desc>
<label><![CDATA[Robots Meta Tag]]></label>
<type><![CDATA[dropdown]]></type>
<value><![CDATA[index, follow]]></value>
<option><![CDATA[index, follow]]></option>
<option><![CDATA[index, nofollow]]></option>
<option><![CDATA[noindex, follow]]></option>
<option><![CDATA[noindex, nofollow]]></option>
</item>
You can control robots also with robots.txt in the (sub)domain root.
Advanced HTML5 & CSS3 coder. Simple JS & PHP hacker (not enough for new function coding). Build one webpage with GS (late 2012). Focusing on Theme customizing/Template files. Experience with WP.