Category Archive
for: ‘Wordpress’

Wordpress: Custom Category Navigation

<pre>
<div id=”primary-nav” class=”<?php echo $primary_nav_class ?>”>
<ul class=”nav”>
<?php
$categories = get_categories();
foreach ($categories as $cat) {
if ($current_category->slug == $cat->slug) { $li_class = ‘<li class=”active”>’; } else { $li_class = ‘<li>’; }
echo $li_class.’<div class=”tab”> <a href=”‘.get_option(‘home’).’/’.get_option(‘category_base’).’/’.$cat->category_nicename.’/’.’”><span>’.$cat->cat_name.’</span></a></div></li>’;
}
?>
</ul>
</div>

<?php if …

Read More

Fix Wordpress Permissions on MediaTemple DV Server…

Heres a simple way to fix the permissions across all sites on a MediaTemple DV Server…
First, To stop wordpress from asking you for FTP information on plugins, add the following code at the beginning of your wp-config.php file.

define(‘FTP_BASE’, ‘/httpdocs/’);
define(‘FTP_CONTENT_DIR’, ‘/httpdocs/wp-content/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/httpdocs/wp-content/plugins/’);
define(‘FTP_USER’, ‘<FTP_Username>’);
define(‘FTP_PASS’, ‘<FTP_Password>’);
define(‘FTP_HOST’, ‘ftp.example.com:21′);

If you dont want to add this, you can install …

Read More