Forums

Single Post As Entire Website (17 posts)

  1. alanhughes
    Member
    Posted 3 years ago #

    I was wanting to use wordpress to create the main and only page of a petition style/suggestions website. I want the post style page to be the main page, as in all the comments and comment form on the front page.

    I know there is an option to use a "page" as the front page, but I am using the K2 theme which doesn't allow comments on pages, and I don't want the extra /$p=1 extension.

    Does anyone know if there is a some what simple way of doing this? Any help will be greatly appreciated.

  2. alanhughes
    Member
    Posted 3 years ago #

    I guess I was hoping there would be a large chunk of code or couple chunks that I could just copy and paste into the index.php file. Or am I completely over simplifying what would be a very complex process?

  3. Dgold
    Member
    Posted 3 years ago #

    Install WP

    Turn on Pretty Permalinks, under WP Admin > Settings > Permalinks

    Write the post you want.

    Edit the permalink of the post to something you can remember. For example, yoursite.com/my-favorite-post

    Now go to your web host (server) and set up a domain redirect with masking, such that anyone who types yoursite.com is automatically redirected to yoursite.com/my-favorite-post (with the URL in their address bar still only showing yoursite.com, that's the masking part). If you don't know how then you can ask your web host for help depending on if your host is good / helpful. You want,
    yoursite.com ----> yoursite.com/my-favorite-post

    I think this method should do what you wanted.

    Also take care to remove any internal links to "other" pages of your site, since you won't be using other pages. There could be certain links automatically in your theme, for example a link to that post's Category page. You can hack that sort of link out of your theme files as needed.

  4. moshu
    Member
    Posted 3 years ago #

    Use the right tool for the task you need to perform:
    http://www.petitionscript.net/free-petition-software.php

  5. Dgold
    Member
    Posted 3 years ago #

    Moshu, that link ends up going to a page trying to sell that script for $15 (even tho it has "free" in the name). You'd vouch for it being worth it?

    WordPress is, of course, actually free -- which makes it a great option to consider for someone wanting to publish a single webpage. I'd recommend WP as a suitable tool for this, without hesitation.

  6. moshu
    Member
    Posted 3 years ago #

    I didn't click further... and on the first page it says "free".

    I am sure there is a normal free script somewhere on the net for petitons. WP is NOT for petitions...

  7. @mercime
    Member
    Posted 3 years ago #

  8. Dgold
    Member
    Posted 3 years ago #

    I am sure he can create the website he talked about using WP.

    According to the original post, he's already installed WP and the K2 theme, and evidently understands what he's chosen to use. I read the question that he asked, it was: how to use a single Post as the homepage (or only page) of his website? I think I answered, and I look forward to finding out if it worked.

    Let's say he did have a free petition script, or better yet a WP plugin that handles the survey or petition style that he needs. Then he could install WP, make a beautiful theme with all the other benefits of WordPress, and run the script on a page of WP. This is what WP does: publish content onto the world wide web. It's not the only way to do that, but it is a good way. It's a lot more flexible than some people think. In practical terms WP isn't limited to blogging.

  9. alanhughes
    Member
    Posted 3 years ago #

    Hmmm, well thank you very much first off, but I don't think that will work for me. Like I said the theme I am wanting to use is K2 because it has live (ajax I think) commenting, but they don't have the function to comment on page posts. I could go with a different them, but I am hosted on a godaddy server, who provide the worst customer service and slowest servers, and least options like redirect, allot of basic stats, and the pretty permalinks option crashes wordpress databases on their servers. But they are dirt cheap and we are an under funded non-profit organization.

    Any other ideas would be great, if not, no biggie. Thanks again for your help.

  10. moshu
    Member
    Posted 3 years ago #

    don't have the function to comment on page posts
    You can add the comments template to every page in every theme.
    Dgold will help you, he knows better everything :)

  11. Dgold
    Member
    Posted 3 years ago #

    Some may get uncomfortable with a Discussion about alternative methods of using WordPress. Odd for an Open Source platform, isn't it!

    What didn't work for you about my suggestion earlier? Pretty sure Godaddy would support redirecting. Did u try it? Ask them or search their Help files.

    Or try moshu's idea of adding the Comments form, into your page .php Page Template of your theme. That involves inserting a line of code into 1 file of your theme. Then set that Page as your static homepage.

    There's more than 1 way

  12. @mercime
    Member
    Posted 3 years ago #

    open up page.php of your default theme then insert this code after the following div

    <div class="entry">
    <?php the_content .... ?>
    <?php wp_link_pages ... ?>
    </div>

    then add:
    <?php comments_template(); ?>

  13. Dgold
    Member
    Posted 3 years ago #

    If you wanted to try the Redirect method, I think you may be able to accomplish it without doing anything on Godaddy or your host, afterall, trying this plugin
    http://wordpress.org/extend/plugins/redirection/

    However the Comments form method on a Page may work better for ya

  14. alanhughes
    Member
    Posted 3 years ago #

    It seems like that is going to work mercime, accept I just completely replaced the page.php code with the post.php code. And so far the wordpress static front page seems to be keeping my url short, masking all the /?p=5 stuff. Thanks again everybody for your help, I will post the final product when complete if anyone is interested.

    http://www.parkersburgskateplaza.org is where it will be eventually.

  15. Dgold
    Member
    Posted 3 years ago #

    Rad site tho. Bring on the petition

    Yeah that's cool the Static front page method will have the masking effect

  16. alanhughes
    Member
    Posted 3 years ago #

    Thanks man, I've got it set up at http://www.parkersburgskateplaza.org/petition but now I'm hoping to use the other wordpress feature to redirect the /petition page to the front main page, so I don't have to clutter my root folder all up.

    But I was looking over wordpress's how to do that page, and they say to change a line in the index.php file that I don't have

    <backticks>require('./wp-blog-header.php');</backticks>

    to

    <backticks>require('./petition/wp-blog-header.php');</backticks>

    They also say to copy the index.php file and some .htaccess file (which I don't seem to have any where) to the root folder. Anybody work with this before?

  17. alanhughes
    Member
    Posted 3 years ago #

    Never mind, I have it going now, thanks anyways.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.