Len
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Sidebar- Displaying Certain CateforiesYou could do it by using the
query_postsfunction.<?php query_posts('category_name=CATEGORYNAME'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile; ?><?php endif; ?>where CATEGORYNAME is the actual name of the category. You could also call the category by ID. Instead of using
category_name=you would usecat=such as…<?php query_posts('cat=X'); ?>where X is the numerical ID of the category.
You’ll have to use your theme’s styling to make it look right.
Here is another option using the
get_postsfunction.<?php global $post; $myposts = get_posts('numberposts=5&category=4'); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>This will dislay 5 entries from the category whose numerical ID is 4.
Forum: Themes and Templates
In reply to: Difference between theme and layout?That’s a good question. While each term is commonly substituted for the other there is a difference. WordPress is made up of a series of PHP files that query the database and display that info each time a visitor comes to your site. A theme, in addition to the PHP files, also uses CSS and images to organize that data and present it in such a way that it is organized, readable and just pleasing to the eyes. A particular theme can have several layouts if it is designed as such an example being iTheme’s new FlexxTheme. This theme has over 1,000 possible layout combinations such as pages and or categories being display above or below the header, one or two sidebars, sidebars displayed on the left or right side of page etc
So while it is one theme it has numerous layout options.
Forum: Fixing WordPress
In reply to: my categories do not work and posts do not appearHave you resolved this? I just visited your site and everything seems to be working. Front page display posts from various categories and clicking categories brings up the posts associated with them.
Forum: Themes and Templates
In reply to: Remove sidebar on certain pagesI answered this a few months ago. Have a look at the following thread.
Forum: Plugins
In reply to: Best Anti Spam Plugin For CommentsI use two –> Akismet and Bad Behaviour. Since I’ve been using them my spam counts have dropped from more than 100 a day to less than half dozen a month.
Akismet comes packaged with WordPress but I gave you the link anyway if for some strange reason you don’t have it.
Forum: Installing WordPress
In reply to: new categories not showingAre there any posts in those categories? If categories are empty WordPress will not display them.
Forum: Requests and Feedback
In reply to: Is It Just Me Or …In case you didn’t know WordPress 2.7 now has a built in core upgrade feature. When an update is available you just “click the button” as you say.
If you can install SVN on your server that’s even easier yet.
Forum: Installing WordPress
In reply to: Blog not visibleYou just started the blog yesterday. These things take time. Be patient.
For future reference, blogs hosted at wordpress.COM have their own support forum at http://en.forums.wordpress.com/
This forum is for people who run the WordPress software on their own servers. Your version of WP is WPMU (WordPress Multi-User) which is a little different than what we use.
Forum: Fixing WordPress
In reply to: test drive/install locally on mac os xThis is something all WordPress users should do. I currently have about a dozen local WP installs, most for development/experimenting and one serves as an offline backup of my real blog. I use WampServer on Vista.
Mac users are in luck. The app you’re looking for is MAMP. There is indeed info in the Codex dealing with this topic here.
Forum: Themes and Templates
In reply to: Creating a Theme for WP (blank Themes)is there a way to get a blank theme so to speak as a foundation that I can use?
Yes I’ve got several. I just have to dig them out so that I remember where I got them from.
Edit: here’s a few to get you started…
http://www.refueled.net/blank-wordpress-themes/
http://www.siftware.co.uk/services/wordpress/blank-wordpress-theme/
http://plainbeta.com/2008/05/20/whiteboard-a-free-wordpress-theme-framework/
http://elliotjaystocks.com/blog/archive/2008/free-starkers-wordpress-theme/Forum: Plugins
In reply to: Is there a way to hide the uploads folder from public/A word of caution: if you use an index file make sure you don’t use a PHP index file in the plugin directory. It may bork the dashboard.
Forum: Installing WordPress
In reply to: Blog not visibleI created a blog, but it is somehow not visible to the others.
Who or what are the others? What is the URL of this invisible blog?
Forum: Fixing WordPress
In reply to: How to add leave a Reply to added pagesYou need to call the comment form with…
<?php comments_template(); ?>Compare your theme’s single.php to page.php to see how it is implemented.
Forum: Fixing WordPress
In reply to: Possible vulnerabilityThere is also security@wordpress.org
Forum: Fixing WordPress
In reply to: the_excerpt functionWhen you use
the_excerpt()WordPress strips out all formatting. There are two ways to go about this:1. If you want to keep using
the_excerpt()and show images you can do so by using Custom Fields. Take a look at any of the magazine-style themes to see how they do this.2. Rather than use
the_excerpt()you can usethe_content(). Then when writing a new post use the “more” tag on the toolbar.