• 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 - 16 through 30 (of 43 total)
  • hakre, thank you. this looks promising. I’ll try it.

    Let me know if it fits your needs.

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

    I could not do this. I went to Write > Write page…
    and then could not access or find anything labeled “Advanced Options”

    I wonder if I can just write this code on the page… nope… didn’t work.

    I also tried to explore the EasyRedirect pluging again. It seems like the download is nowhere to be found.

    I could not do this. I went to Write > Write page…
    and then could not access or find anything labeled “Advanced Options”

    Maybe this screenshot helps.

    Nope – these options are not here – maybe you are using a different version of WordPress? 2.5?

    https://images.dogearnation.net/writepageadvanced.png

    I’m using an hosting service that is using Fantastico Delux to handle the WordPress installations. And 2.5 isn’t available yet. .

    A lot of problems with the image you have posted, Matt.

    1. We edit template files in a plain text editor (like notepad) on the computer, save it, and upload to the theme folder.
    2. You should never ever write PHP code into the content area of a post of Page.
    3. After you uploaded the new template file to your theme directory, then while writing a Page you have on the right side (between Page parent and Page slug) the option to select a Template for the Page.

    A little bit more help:
    https://www.ads-software.com/extend/plugins/easyredirect

    Never assume: CQS is NOT associated with tags; so don’t write BS if you didn’t even see how it works… For the problem to have different number of posts displayed on different pages – it is the ideal solution.

    More about creating Page templates: Pages#Page_Templates

    When offered multiple solutions for an issue, don’t “cross” them to get a mule… Go with one. If it doesn’t work, try the next one ??

    moshu, I think matt did 2.) because he did not understand that he actually needs to upload the file -or- he just was trying things ??

    anyway in pre 2.5 wordpress the Page Template Dropdown is loacated on the right side.

    hakre, scroll up, on the right read the About this topic – and answer questions according to the WP version posted ??

    Moshu, I understand that we edit template files in a plain text editor. But I didn’t see the advanced option described above, so I tried this. And if failed of course.

    Now that you pointed out where the Template selection was, I could follow the directions above…

    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.

    The result was, when I went to my homepage…

    Sorry, no posts matched your criteria.

    Like I mentioned above, this seems to work, a page that simply does…

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

    However, the concern is that this is somehow the wabi sabi rather than the proper & elegant solution.

    The result was, when I went to my homepage…

    Sorry, no posts matched your criteria.

    Now get the ID of the post you like to be displayed on your homepage. That number has to be in the theme-file. I choosed ID 1 (ID Number One) as an example value.

    Ah ha! It worked!

    And now, I just realized that this method requires the ID to be set within a php file on the web server. This isn’t something I can expose to web authors.

    Hmmmmmm….. now, how can I expose this

    /* use post with ID 1 as homepage */
    query_posts(‘p=1’);

    How can I allow web authors to set p=
    ?

    Well by creating a simple plugin that is saving the ID value with wp_set_option(); and the template is reading it out with wp_get_option();

    What “web authors”? You have never mentioned anybody else than the “site administrator”.

    What this whole issue has to do with authors? Who are the authors?

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