• Is there a way to set a specific post to be the homepage everytime someone visits my main URL instead of my most recent post?

Viewing 15 replies - 1 through 15 (of 43 total)
  • If you go to you Admin Panel then select —> Options —> Reading there is a section that says

    A static page (select below)

    Then a drop down menu. Just select the page you want to make the main page to your blog. I have mine setup that way. Hope this helps.

    MattSimpson

    (@mattsimpson)

    This is just for a static page. But the question is how to set a specific post to be the homepage. Static pages are different than posts, yes?

    See this thread http://wordpress.org/support/topic/167151?replies=1

    hakre

    (@hakre)

    you could create a template file that fetches a specific post that can be used as template for the page you then setup in the options as blog homepage. for the short run. are you familar with templates in themes?

    MattSimpson

    (@mattsimpson)

    I’m not familiar enough to be able to do this solo. I can hack a template if someone pointed me to the right place. I can write a page and set a page as the homepage. I can even use the Inline Posts Plugin – http://aralbalkan.com/1016 – to almost get to the goal. But, that plugin doesn’t have the comments showing or the reply / comment input form.

    MattSimpson

    (@mattsimpson)

    RE-STATEMENT OF THE GOAL

    You know the page you see when you click on the title of a blog posting? It has the comment (reply) form already showing at the bottom.

    HOW do I get that page to load on my site’s homepage?

    When users arrive at my site, I want them to be able to read the full article. And then when they get to the bottom of the article, I want them to see the discussion thread and also the form to add their comments.

    I’ve searched all over and can’t find any documentation on this.

    Thanks in advance. Can anyone help?

    MattSimpson

    (@mattsimpson)

    The more I think about this, the more bizarre it is that the solution isn’t already set within the WordPress engine somehow. Or, maybe this is a plugin in the making.

    User should be able to go to Options and set alternative default URL to render as the homepage (and make it google.com even if they wanted to.) The URL doesn’t need to render to http://example.com. It could render to http://example.com/nodeID.

    In other words, a simple redirect of the homepage to an alternative URL would serve the purpose. The site administrator could set the URL manually to the latest post.

    MattSimpson

    (@mattsimpson)

    I found the solution.

    Create a page called ‘redirect’ with this content…

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.example.com/index.html">

    Then, change the URL to the page you want to redirect people to.

    Then, set that page as the homepage, via: Options > Reading > Static Page > Front Page > Redirect

    moshu

    (@moshu)

    The site administrator could set the URL manually to the latest post.

    Set your blog to show 1 (one) post only on the main page.
    Then you search for “comments on index”:
    http://wordpress.org/search/comments+on+index?forums=1

    Done.

    Before you ask: to have more than one post displayed in other views (e.g. monthly and category archives, search etc.) use a plugin like CQS.

    moshu

    (@moshu)

    As for the redirect: there are several plugins that do that: Redirectify, EasyRedirect…

    MattSimpson

    (@mattsimpson)

    Set your blog to show 1 (one) post only on the main page

    I can’t find a way to do this. If I do Options > Reading > Blog pages > 1 then I also get this restriction in the archive.

    Then you search for “comments on index”:

    I have no idea what you are talking about. Are you saying I should create a page with a redirect to search for comments on index? I don’t want a search results page as my homepage. And I don’t have any content in my blog that specifies comments on index.

    I looked for Custom Query String and it looks like it’s orphaned.

    hakre

    (@hakre)

    I would not recommend using redirects for that. If you want to create a template, go inside your theme directory and create a new file called homepagepost.php and enter the following short code:

    <?php
    /*
    Template Name: Homepage Post
    */
    
    /* use post with ID 1 as homepage */
    query_posts('p=1');
    
    /* get single post template from theme */
    include ('single.php');
    ?>

    Now login your admin, write a new page and entitle it as “Homepage”. Under Advanced Options select Homepage Post in the Page Template dropdown. Then publish the page.

    Now switch to Settings -> Reading and in the Reading Settings under Front page displays select A static page (select below) and then in the Front page dropdown select Homepage. Then press the Save Changes button below to save the changes made.

    Now visit your site (press the Visit Site Button on top). Your homepage should now display the post with the ID 1 like the URL of this post has been entered directly.

    moshu

    (@moshu)

    When I say/write “SEARCH” – it always means: I gave you the directions, now do your homework and search the forum. Actually, I even gave you the link to the search results. You just need to read it.

    Reason for searching: WP by default will NOT let you display comments and comment form on the main page (that’s what you asked for). Using the search results and reading earlier Q+As you will find the solution.

    And for your 1 post in archives question I also gave you the solution. Just read my post again.

    moshu

    (@moshu)

    CQS is not orphaned for quite a while…

    hakre

    (@hakre)

    moshu, what do you think about the post I made? We ran a bit crossover 😉

    MattSimpson

    (@mattsimpson)

    ok – I did my homework and I read http://wordpress.org/search/comments+on+index?forums=1 – thank you for the clues…

    a simple solution is still just to redirect a page as I quoted above.

    If you see http://wordpress.org/extend/plugins/search.php?q=Redirectify – you get no search results found.

    If you see http://www.ejump.co.uk/wordpress/easyredirect-redirection-plugin-for-wordpress/ this is a solution that I’m not sure how this would work on the homepage if multiple blog posts are showing via index.php and each pointing to their individual URLs.

    CQS looks interesting. It will take more study to understand it. It seems to be strongly associated with tags, which isn’t core to this problem.

Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘Blog Homepage?’ is closed to new replies.