Python Script to Import Simple Tagging tags to Wordpress 2.3
Database: dbname Database user: dbuser dbuser Password: Wordpress table prefix [wp]: wp 215 tags imported.
Tags: WordPress, Python, tagging
Database: dbname Database user: dbuser dbuser Password: Wordpress table prefix [wp]: wp 215 tags imported.
Tags: WordPress, Python, tagging
if ( empty($title) ) {
$tag = get_query_var('tag'); // assume
if ( !empty($tag) )
$title = "Browse by ".$tag;
}
Posted in WordPress
function get_tags($tag) {
return explode("+", $tag);
}
function navigate_tags($tag) {
$tags = get_tags($tag);
$tagUri = '/tag/';
$link = '';
$tagfmt = '>> <a href="%link%">%name%</a> ';
$tagvars = array("%link%", "%name%");
$nav = '';
foreach ($tags as $t) {
$link .= (($link != '')? '+' : '') . $t;
$nav .= str_replace($tagvars, array($tagUri.$link, $t), $tagfmt);
}
return $nav;
}
Apps*
|__Python*
| |___Utils*
| | |___SkyExplorer
| |___SkyExplorer
|__Utils*
| |___Python*
| | |___SkyExplorer
| |___SkyExplorer
|
..
|__SkyExplorer
You can also search for application or tag name at any level in the application menu, the search is performed within the current tag (or folder). For eg. below, I search for Exp. It simply tries to search Exp within the application or tag names. (Yes, this is a bit different from the actual file searching and the display text is the same which is not right!)
Search for Exp
|
Apps *Exp*
|
Tags: tagging, user-guide, Sky-Explorer
Posted in Sky-Explorer , Python , Mobile