Joshua Sigar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show excert of post in specific categoryNow.. is it possible to automatically have a link where the […] is to the category listing: cat=12 ?
The[...]is there to stay. You can’t modify it without hacking the source code.
You could display the category of the post (which links to category listing) by using the template tag the_category()
http://codex.wordpress.org/Template_Tags/the_categoryAlos, could I have more categories listed in the <?php if(in_category(12)? Like: <?php if(in_category(12,13,14)
<?php if(in_category(12) || in_category(13) || in_category(14) || is_archive()) {
the_excerpt();
} else {
the_content();
} ?>;Forum: Fixing WordPress
In reply to: Show excert of post in specific categoryI just need to verify. You need the following structure in Front Page, correct?
Post in category regular
--Show Content--Post in category special
--Show Excerpt--Post in category regular
--Show Content--Post in category regular
--Show Content--Post in category special
--Show Excerpt--If so, then you’d do the following.
<?php if(in_category(12) || is_archive()) {
the_excerpt();
} else {
the_content();
} ?>Forum: Themes and Templates
In reply to: help with centering theme in firefoxJust add the following in #page
margin: 0 auto;Forum: Themes and Templates
In reply to: Okay, I’m stupid todayh1 a {
position: relative;
top: 200px;
left: 200px;
}Adjust the amount of pixels as necessary.
Forum: Themes and Templates
In reply to: Here I go againWhy do you have two ordered list: one contains “home” and the other contains the rest?
Anywho, there are two possible CSS solutions depending on your goal.
#navmenu ol {
display: inline;
}…Or…
#navmenu ol li {
float: left;
}Forum: Fixing WordPress
In reply to: Show excert of post in specific categoryin_category(notis_category) is probably the appropriate template tag you will need.http://codex.wordpress.org/Template_Tags/in_category
The link to full article can be done like the following
<a href="<?php the_permalink(); ?>">Read more...</a>Forum: Requests and Feedback
In reply to: WordPress 2.0 ThoughtsForum: Themes and Templates
In reply to: Can I change the path where the themes are?There are the following functions in file functions.php
function get_theme_root() {
return apply_filters('theme_root', ABSPATH . "wp-content/themes");
}function get_theme_root_uri() {
return apply_filters('theme_root_uri', get_settings('siteurl') . "/wp-content/themes", get_settings('siteurl'));
}
That says that you can change the path to where WP should look for themes. Just create a plugin which utilizes filter ‘theme_root’ and ‘theme_root_uri’.
Forum: Fixing WordPress
In reply to: Oh Plz help meGet this plugin
http://rhymedcode.net/wordpress/wp-content/plugins/rc-separate-comments.phpsCreate comments/comment form template
Example
http://rhymedcode.net/wordpress/wp-content/themes/rhymed-code/comments-template.phps
(Source code for http://rhymedcode.net/1001-wordpression-loops/miniblog/?comments=true )Call the plugin’s function in a template file
Example
http://rhymedcode.net/wordpress/wp-content/themes/rhymed-code/single.phps
(Source code for http://rhymedcode.net/1001-wordpression-loops/miniblog/ )Forum: Fixing WordPress
In reply to: Oh Plz help meForum: Plugins
In reply to: Simple Image Gallery Grid (Perhaps From Excerpts)Here’s what I would suggest.
Put all image-related Posts in one category (e.g. “Portfolio”).
Say, the category “Portfolio” has ID of 6, create a new file in your active theme folder and name it
category-6.php.That file, category-6.php, will be used as a template to display the Post in category 6/Portfolio. The visitor will access it by going to http://mysite.com/?cat=6 or, with permalink enabled, http://mysite.com/category/portfolio. That link should be available when you list all categories you have in front page using some template tag.
To start off, just copy the content of index.php in the active theme folder to category-6.php. Later you could adjust the markup in category-6.php to display 3-column or anything else you want.
Forum: Plugins
In reply to: Simple Image Gallery Grid (Perhaps From Excerpts)http://codex.wordpress.org/Template_Tags/get_posts
There you go. Where are you gonna put the Loop at? Front page? Category page? ..? (There’s more specific solution if you could answer that.)
Forum: Your WordPress
In reply to: phuly.co.uk – my photoblogThe design is nice. But what I love the most is the “location” and “some words from your host.” It’s nice to know the story behind the photos — not many, if any, photoblogs include those info.
Forum: Fixing WordPress
In reply to: My page doesn’t expand following posts… why?Try adding the following into your CSS file
#footer {
clear: both;
}Forum: Installing WordPress
In reply to: is_page thinks is_archiveDo you embed custom query_posts? Like pulling out posts with category name “contact-us?” By doing so, your page is in category-view mode (is_category is true). When in category view, automatically the page is in archive mode also.
So, basically the page is a “page” by the original, behind-the-scene query_posts, until you call another query_posts which override the type of the page to become an “archive”