vacmedia
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can't login into admin – error below- please helpI think u had problem with akismet plugin. Try to upgrade the akismet plugin……
Forum: Themes and Templates
In reply to: Tech Blue Theme – setting post length on front pagefunction the_content_limit($max_char, $more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
$content = strip_tags($content);if (strlen($_GET[‘p’]) > 0) {
echo “<p>”;
echo $content;
echo ” <a rel=’nofollow’ href='”;
the_permalink();
echo “‘>”.__(‘Read More’, ‘studiopress’).” →”;
echo “</p>”;
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, ” “, $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo “<p>”;
echo $content;
echo “…”;
echo ” <a rel=’nofollow’ href='”;
the_permalink();
echo “‘>”.$more_link_text.””;
echo “</p>”;
}
else {
echo “<p>”;
echo $content;
echo ” <a rel=’nofollow’ href='”;
the_permalink();
echo “‘>”.__(‘Read More’, ‘studiopress’).” →”;
echo “</p>”;
}
}Put the above code in functions.php and replace the funnction in index.php with
<?php the_content_limit(‘200’); ?>
Forum: Installing WordPress
In reply to: Installation ProbelmsDid you unzipped the plugin
Forum: Installing WordPress
In reply to: Update to 2.9.2 Failedit may be because of pluging
rename your plugin folder and try to install
Forum: Themes and Templates
In reply to: Having troubles installing theme HELPcreate a file named style.css inside your theme directory and paste the code below
[Large code excerpt removed by moderator. Per forum rules, please post large code excerpts in the pastebin. It works better anyway.]
Forum: Themes and Templates
In reply to: Archives by month showing postsUse this function
<?php wp_get_archives(); ?>
Forum: Themes and Templates
In reply to: insert the_excerpt in recent postyou can use like this
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_excerpt(); ?>
<?php endwhile; endif; ?>
Forum: Themes and Templates
In reply to: horizontal menu IE6, IE7add an extra line
float:left
in
#menu ul li {
display:inline;
}