Thanks, syncbox! Glad the plugin has been of help to you!
I HAVE BEEN LOOKING FOR THIS KIND OF THING FOREVER.
Thank You.
One question – my goal is to label articles like “short” or “long” – also with things like “customer is looking for vision for business” and “heavy on the imagery” – things like that.
The goal is to become a better writer.
Any plugin that you know of that allows tracking that in Google Analytics? Or do you know how do create the custom segments in GA?
Thanks, Gregory
http://www.thinkaroundcorners.biz
I use Scott’s excellent get_recent_custom() function (in this plugin) to store labels for display outside of the page or post loop, too.
For example, Let’s say I have a totally custom layout using the WP logic as a CMS. I need some fields that are not associated with any particular post — perhaps to allow the client to change a color value in the css or the number of sub-pages to display in the parent page (with various field data, etc)… I don’t want this controlled by the WordPress Settings (rather not have them edit any of that, frankly)… so, in my homepage, I store custom field keys and values for those things.
Then, using c2c_get_recent_custom() [because it isn’t in the loop] I can get the value of the key and store it in a variable then use the var in my php.
Here’s an example:
<?php
$pages = get_pages(‘child_of=3&sort_column=menu_order&sort_order=ASC’);
$count = 0;
foreach($pages as $page)
{
$cpimage = get_post_meta($page->ID,’cpimg’,true);
$cpitalic = get_post_meta($page->ID,’cptagline’,true);
$cpbrief = get_post_meta($page->ID,’cpdescription’,true);
$numpages = c2c_get_recent_custom(‘show-cps’);
$content = $page->post_content;
if(!$content)
continue;
if($count >= $numpages)
break;
$count++;
//$content = apply_filters(‘the_content’, $content);
?>
The more I use this fab plugin, the more uses I find FOR IT. So Scott, just know that it is the FIRST plugin I install for ANY WordPress site I build! It is my favorite and I cannot help but show folks on this forum how versatile it is!