daddysunny
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Getting rid of ‘category’See, I’m trying to build a sub-section called ‘magazine’. Now rather than have a separate wordpress build for it, I thought I’d designate it as a category instead, and simply spruce up its specific category page so it looks more enhanced.
The only problem is that categories are displayed in the URL bar with a ‘category’ (or something) and that just looks messy because it looks like other categories rather than looking special.
But while discussing with you, I think I realised the solution.
I’ll use a re-direct in my htaccess file so that https://www.blog.org/magazine/ points to
https://www.blog.org/category/magazine/so the URL looks cleaner while I don’t have to designate it as a Page but can use it as a category!
Good idea? Or am I still confusing you?
Forum: Themes and Templates
In reply to: PHP HelpYou can’t use that tag on its own. You have to install the plugin to go with it, and then it works.
I have my own ‘hack’ for this… although I don’t know which puts less load on the server:
<?php
$query1 = "
SELECT wp_comments.comment_ID, wp_comments.comment_author, wp_comments.comment_post_ID, wp_posts.post_title FROM wp_comments, wp_posts
WHERE wp_comments.comment_post_ID = wp_posts.ID AND wp_comments.comment_approved = '1'
ORDER BY wp_comments.comment_date_gmt DESC LIMIT 15";
$result1 = mysql_query($query1);
while ($r1 = mysql_fetch_array($result1)) {
extract($r1);
echo "$comment_author on <i>$post_title</i>";
}
mysql_free_result($result1);
?>Forum: Themes and Templates
In reply to: Getting rid of ‘category’What I mean is, the best I can do is make it into:
https://www.blog.org/blah/magazine/
and
https://www.blog.org/blah/events/while my other categories (which will only be used as categories) will look also like:
https://www.blog.org/blah/lifestyle/
I would just rather get rid of the ‘blah’ for the big categories.
Forum: Themes and Templates
In reply to: Getting rid of ‘category’Apologies for mixing up tags and categories.
I’m not trying to ‘outsmart’ the system, honest.
The only reason I would prefer a page making it into a category is that it looks like the other categories then.
Forum: Themes and Templates
In reply to: Getting rid of ‘category’Hmmmm… that doesn’t do what I want to. There’s certain sections that will be more than just category sections depending on the tags. They will be miniature sections with added content.
Like ‘events’ or ‘magazine’.
What’s so bad about making a page into a category template?
thanks
Forum: Themes and Templates
In reply to: Getting rid of ‘category’thanks dude! Will look at that.
Forum: Themes and Templates
In reply to: How to display posts by category?Thanks!