Edward Caissie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sidebar – List child and by page order?You’re welcome! Glad it worked out for you.
Forum: Themes and Templates
In reply to: Child Theme working, but not for all php filesThe first item to address is the ‘TEMPLATEPATH” global you are using, that is pointing to the the Parent-Theme. This is why you are not seeing your customized ‘featured.php’ file.
To correct, I would suggest using the ‘get_template_part’ in place of the ‘TEMPLATEPATH’ in a new header.php file for the Child-Theme.
Link: http://codex.wordpress.org/Function_Reference/get_template_part
Forum: Fixing WordPress
In reply to: Sidebar – List child and by page order?IF the first snippet of code does what you are looking for and the second provides the correct order try this:
<?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>Forum: Themes and Templates
In reply to: No image padding on front pageYou’re welcome!
You might want to consider bookmarking this thread in case you update your Theme; any edits you make will generally be over-written with an update.
Forum: Themes and Templates
In reply to: No image padding on front pageYes, although it is considered a bit of a “hack” … after the_content(), add this:
<div style="clear:both;"></div>Forum: Fixing WordPress
In reply to: Pulling latest Category post into website. . .Have a read through this section in the codex:
http://codex.wordpress.org/The_Loop#Multiple_LoopsYou might want to read a few other pages as well, starting here:
http://codex.wordpress.org/The_Loop_in_Action
http://codex.wordpress.org/Function_Reference/query_postsHopefully that will get you into the right area …
Forum: Themes and Templates
In reply to: No image padding on front pageWell I must admit it was a bit of a stab in the dark, the Theme author may be interested in these issues and may offer other solutions. In the meantime, you can remove what you just added as “it does not seem to work.”
… and try this (again, all of these are being offered without testing):
div.texty small { clear: both; }Forum: Fixing WordPress
In reply to: Change Title Size for Specific PostYou would need to add it to style.css; I would be very doubtful you would be changing anything to accomplish this.
Forum: Themes and Templates
In reply to: No image padding on front pageThis is a common “clear float” issue often seen when doing Theme reviews.
Again, taking from your theme:
.postmetadata { background: url("images/shadow.gif") no-repeat scroll center bottom transparent; clear: both; margin: 0 0 60px; min-height: 40px; padding: 6px 0; }This time from the index view, I would expect if you add an additional element using the ‘.texty’ class ( .texty .postmetadata { … } ) to your style sheet you should see the correction you are looking for. The key is the ‘clear:both;’ property.
Forum: Fixing WordPress
In reply to: Change Title Size for Specific PostOnce the post is published it will have an ID; with the ID you can write a specific CSS element to handle the size of the title’s font, etc. for example, if the post ID is 324:
.post-324 .h2 { font-size: 60%; }NB: The actual specific elements and other identifiers will be completely Theme related, the above is just an example to start from.
Forum: Themes and Templates
In reply to: No image padding on front pageIt looks like you need to add some basic style sheet elements to your theme:
.texty img.alignleft { display: inline; margin: 3px 7px 3px 0; padding: 5px; }The above was taken from your single view of the first post. If you drop the ‘.texty’ and add that style element to your main styles.css file you should see the correction you are looking for.
Forum: Fixing WordPress
In reply to: How to display latest posts from first cat id??Thank You! It was an interesting problem to sort out; glad it’s working for you.
Forum: Fixing WordPress
In reply to: How to display latest posts from first cat id??<?php $category = get_the_category( $post->ID ); $cat_choice = $category[0]->cat_ID; query_posts( "cat=$cat_choice&posts_per_page=2&offset=1" ); if ( have_posts() ) : while ( have_posts() ) : the_post(); // the content et al. endwhile; else : // no posts etc. endif; wp_reset_query(); ?>Not much more I can do with that … you will have to fill in the blanks from there.
PS: Although tested to insure it works (pasted into a sidebar.php file in a random theme on one of my test sites) your mileage may vary. EAC
Forum: Fixing WordPress
In reply to: How to display latest posts from first cat id??Try something like this:
$category = get_the_category(); query_posts( "cat=$category[0]->cat_ID&posts_per_page=2&offset=1" );Forum: Fixing WordPress
In reply to: How to display latest posts from first cat id??I would have a look through the examples on this page: http://codex.wordpress.org/Template_Tags/query_posts
Look at the ‘offset’ parameter to skip the first post.
You can create and use a second query after the “single” post is displayed (remember to reset the query afterward, just in case). This normally works fine as the ‘sidebar’ is generally called after the content is displayed.
This might get you started:
query_posts( "cat=$cat_choice&posts_per_page=2&offset=1" );