yolise
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: editing a template returns a blank page on submitActivating a new theme does the same thing, however, the change is not made.
Forum: Fixing WordPress
In reply to: Incorrect upload permissions in 3.0.1Thanks. Actually, I just tried that independently and it worked.
Forum: Fixing WordPress
In reply to: category template for multiple categoriesWorks nicely, however, it overrides situations where a child category *does” need its own template.
Six of one, half a dozen of the other, I guess…
Forum: Fixing WordPress
In reply to: post thumbnail resizing not working for meThis explains it: https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
What if you want to use a small 50×50 hard-cropped image for the home page, but want to use a 400 pixel-wide (unlimited height) image on the post’s permalink page? You’re in luck. You can specify additional custom sizes! Here’s the code:
functions.php
add_theme_support( ‘post-thumbnails’ );
set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails
add_image_size( ‘single-post-thumbnail’, 400, 9999 ); // Permalink thumbnail sizehome.php or index.php, depending on your theme structure (in the loop)
<?php the_post_thumbnail(); ?>single.php (in the loop):
<?php the_post_thumbnail( ‘single-post-thumbnail’ ); ?>Forum: Fixing WordPress
In reply to: Adapting search.php to new themeOK – no idea why the Twenty Ten search page doesn’t work, but I created my own using a regular loop without the content. Guess it just magically works…
Forum: Fixing WordPress
In reply to: Adapting search.php to new themeCan I bump this? Is there a better section for this?
Forum: Fixing WordPress
In reply to: post thumbnail resizing not working for meAny takers on the relationships between the various thumbnail settings? I’ve still not been able to figure this one out…
Forum: Themes and Templates
In reply to: the_excerpt wrapped in paragraph tagsThank you!
Forum: Themes and Templates
In reply to: css for rss widgetd’oh. Nevermind. I’ve worked it out.
Forum: Fixing WordPress
In reply to: Permalinks and PreviewsOddly, this has started happening again (only today!). Now neither of us can see the previews and I can’t remember what happened last time or how (or even if) I fixed it.
Anyone ever see this?
Forum: Themes and Templates
In reply to: Displaying a page two different waysRight. I answered my own question and figured it out. I use exclude to leave out the dummy page from the navigation.
Only clarification for anyone else that finds this,
query_posts(“p=14”); didn’t work, but query_posts(‘page_id=14’); does.
Thanks for the help!
Forum: Themes and Templates
In reply to: Displaying a page two different waysI’m wondering if I still don’t understand this. When you say “dummy page” or “duplicate page”, what is meant here? Creating a duplicate page in the Word Press control panel? Why would I only need to edit one of them? Won’t both pages show up on the blog navigation? Or would I have to hardcode the links on the blog index?
Forum: Themes and Templates
In reply to: Displaying a page two different waysAny idea how to build a url for a specific page template?
I’ve been through the docs over and over and still haven’t seen any way to specify a particular template in a url.
Forum: Themes and Templates
In reply to: Displaying a page two different waysAh! Ok, that’s perfect – thanks!
How would you call that page url?
Forum: Themes and Templates
In reply to: Displaying a page two different waysI was going to check the referrer url as a last resort, but it would get complicated because in one instance the template needs the header, sidebars and footer, but in the other needs only the content of the entry.
The problem with creating a duplicate page entry is that it’s not really reusing content. It means making a change to two different page entries whenever the information needs to change.
I might as well just hard-code the page in that case.
Is there a way to get the xml of an individual page? I could parse that in an alternative layout…