wordpress $wp_query->get_queried_object() -
May-2009
what is returned from the query object?
stdClass Object (
[term_id] => 8
[name] => video
[slug] => video
[term_group] => 0
[term_taxonomy_id] => 8
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 2
[object_id] => 136
[cat_ID] => 8
[category_count] => 2
[category_description] =>
[cat_name] => video
[category_nicename] => video
[category_parent] => 0
)
simple wordpress stats: counterizeii plugin for 2.7 -
April-2009
in need of a simple stats plugin to show stats in the dashboard.
Counterize II
this works fine, shows a few basic stats, and a graph of hits.
It seems to have not been updated since wp 2.5 so needed to make a few changes:
1. Getting the panel to show up correctly in the dashboard
in counterizeii/counterize_dashboard.php changed:
<div class='dashboard-widget' style='width: 300px; height: 150px;'>
<h3 class='dashboard-widget-title'><?php _e('Counterize II Status'); ?> <a href='edit.php?page=counterizeii/counterize.php'>&raquo;</a></h3>
<div class='dashboard-widget-content' >
to this:
</div>
</div>
<div>
<div class='dashboard-widget postbox' >
<h3 class='hndle'><?php _e('Counterize II Status'); ?> <a href='edit.php?page=counterizeii/counterize.php'>&raquo;</a></h3>
<div class='inside' >
And Deleting one of the
</div>
at the end of that section.
This makes it show up correctly in the dashboard.
2. I wanted my client, an Editor to be able to view the stats
in counterize.php the following lines:
add_submenu_page('edit.php',__('Counterize II'), __('Counterize II'), 8, __FILE__, 'counterize_manage_page');
add_options_page('Counterize II Options', 'Counterize II', 8, basename(__FILE__), 'counterize_options_page');
changed 8 (admin) to 2 (author)