• Resolved firefox

    (@firefox)


    How do you do this:

    When someone clicks on a Post link (lets say from index.php or the home page of your blog), it will retrieve/display the individual page specifically for that post.

    in other words…

    On the home page, I would have brief summaries for my daily Posts and would like to set it up so that when someone clicks on an individual post link, it will bring them to page that has the entire or remaining story (and no other posts on that particular page).

    Most blogs are set up this way I think.

    Thanks for any help!

Viewing 15 replies - 1 through 15 (of 15 total)
  • On your index.php you would need to change the content to the excerpt. And then you would need to make sure that you have a single.php that displays the content.

    Thread Starter firefox

    (@firefox)

    my theme didn’t come with any single.php file.

    The excerpt should be written in the post section of the admin panel. How do I create a link to the appropriate single.php file?

    thanks

    Thread Starter firefox

    (@firefox)

    how do you change the content to an excerpt?

    <div class=”storycontent”>
    <?php the_content(__(‘(more…)’)); ?>
    </div><!– end STORYCONTENT –>

    Ok, you need to create a single.php. Copy your index.php and rename it to single.php, then upload it into your theme. WP will then automatically use single.php anytime you are only looking at a single post. In your index.php, you probably have a tag that says <?php the_content(); ?> You should change that to <?php the_excerpt(); ?>.

    You do not create “link” to the single.php file.
    See Template_Hierarchy. You just have to have it in your theme. If there isn’t one, just save the index.php as single.php and replace the_content with the the_excerpt. WP recognizes the different template files that are in the theme.
    See it visually here.

    Thread Starter firefox

    (@firefox)

    Do you need to tweak the CSS file cause after I did what you said, my frontpage (or index) displayed incorrectly.

    We don’t know what “incorrectly” is. Maybe a link…

    How so? The only thing you changed was the content to the excerpt, right?

    Thread Starter firefox

    (@firefox)

    “incorrectly” means things got moved around – the content pushed the sidebar towards the bottom.

    yeap, I replaced <?php the_content(__(‘(more…)’)); ?>
    with <?php the_excerpt(); ?> within index.php
    and also created a single.php from the original index.php.

    Now it is really time for a link if you want further help…

    Thread Starter firefox

    (@firefox)

    Thanks all. The instructions you provided did get the job done but I still can’t figure out why the content from the index.php moved my sidebar to the bottom. see for yourself.

    http://www.selfcaretalk.com

    Shouldn’t the post automatically wrap to the next line and not stretch the content box all the way to the right?

    Thread Starter firefox

    (@firefox)

    hmmmm.. seems like no one has any solutions.

    but if any case, the theme i am using is “Tech-Bytes”.
    If anyone gets the chance to use that theme and try the excerpt() function, do let me the result.

    by the way, I did use another theme and the except did work fine in it.

    thanks!

    I have one thought, but it’s more of a question (though it answers the formatting issue): Any idea why your excerpts are wrapped in:

    <pre><code> ... </code></pre>

    And it’s the <pre> element that’s causing the text to scroll out off the content area.

    Thread Starter firefox

    (@firefox)

    hello. you know what, i test run that theme with the except() on a friend’s site and it works fine.

    good eye there chap! how do i get rid of that <pre> code?

    Thread Starter firefox

    (@firefox)

    thanks everyone. i found the problem. the Markdown plugin that I had installed was deactivated. I activated and it’s back to normal. God bless everyone here, you are all terrific supporters.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Individual Post to a Page’ is closed to new replies.