• Resolved JDracup

    (@jdracup)


    Hello!
    I use Artisteer for my theme creation needs with WordPress, and for my purposes it works well for 95% of the things I care about in the theme. There is one nagging deficiency however in that I can’t set the way posts appear on my frontpage the way I want them to.

    I threw this theme together this morning and put up a few quick test posts and sample pages. You can view it here.

    You’ll notice on the frontpage that articles show their content in its entirety, and if a featured image is not set it does not appear next to the title (see Test Post 3). What I want to do is this (for the frontpage view of posts only):

    1) Limit the post word count to the first 50-100 words.
    2) Automatically show a 150×150 image, taken from the first image in the post, in place of the featured image if a featured image is not manually selected for the post.
    3) Retain the linkable title (which should link to the individual, full post) and meta information.
    4) Have it set up so that the “featured” image is to the left and the title/first 50-60 words float to the right. (I dont want to have to manually ad a “more” snippet to each post).

    If I’m right it’s a matter of modifying one of the php files or templates somehow, but I am woefully ignorant in that regard. If someone could help, that would be great. Here is a link to the theme .zip will all of the associated files: .ZIP

    Thank You.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter JDracup

    (@jdracup)

    Darn; I posted this in the Plugins/Hacks. If someone could move this over to the theme forum, that would be best. Sorry!

    esmi

    (@esmi)

    1. Amend your theme’s template files to use the_excerpt() instead of the_content()

    2. See Post_Thumbnails

    3. Amend your theme’s template files and ensure that the post titles use the_permalink()

    4. Once you have post thumbnail support enabled, you will need to edit your theme’s CSS to float the post thumbnail images according. I’d recommend using Firefox with the Firebug add-on for this kind of work.

    Thread Starter JDracup

    (@jdracup)

    “Theme Diva”; I like that XD. I will give it a shot, thank you. Quick question though; won’t “the_excerpt()” require me to write something into the excerpt box? I was under the impression that it would, or will it automatically take from the existing post content?

    esmi

    (@esmi)

    No. If the optional excerpt box is empty, WP will create an auto-excerpt from the first 55 words in your post content.

    Thread Starter JDracup

    (@jdracup)

    That’s good. Turns out it’s also irrelevant….. After upgrading there’s now a checkbox for auto-excerpting added to the theme options 🙁 Don’t I feel stupid. Working on the thumbnails and CSS. Thanks again for the help.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Modifying Post Appearance on the Frontpage’ is closed to new replies.