Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Ok, the point really was to :

    1. Make a static page your home page, and possibility to change it content from admin panel.
    2. Get a fancy link to back to your blog with all your posts, like you get it usually without hacks or plugins. This link have to be in pages list automatically.

    Of course i used home.php functionality in my hack. But sorry for all – my hack not works properly ?? Try to reach next page if you have more than 10 posts and you will get 404 error.

    lawtai have a good solution, but i don’t know why it not works for me (i always have 404 error when try to get my posts, and even if it’s working – i have to manually add link to blog to menu. It’s simple but i’m lazy :).

    Now i’m trying the way with plugins – Ryan’s Page to Front, and Owen’s Redirectify.

    Will see….

    Forum: Plugins
    In reply to: WP Page as static home page
    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    i just rounding there about this topic and find some parallel threads.

    I think the last have no advantages, my method have a points :
    1. you can style your homepage as you want
    2. you get a news page already styled like usual blog (by copying index.php you copy all stuff)
    Abd you don’t need change permalinks and other thing.

    ?? i just reflect on all this (this is my first post and i little bit verbose ??
    and sorry for my english, i m from Uzbekistan

    Here is my solution :

    1. Copy page.php -> home.php
    2. Add query_posts(“page_id=2”); (where page_id is your page) before the Loop
    3. Copy index.php -> news.php and add at the top
    <?php
    /*
    Template Name: News
    */
    ?>
    And add query_posts(“showposts=10”); before the Loop
    4. Make a page named News and assign template News to it

    All works fine, i think. At least for me. And all pages in sidebar lists automatically.
    Basicaly it’s the same solution as above, but there is no need to change permalinks and adresses.

    Is there any bugs or minuses ?

    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    Just resloved what this problem have another simple solution :

    https://codex.www.ads-software.com/Pages#Using_a_Page_as_the_Front_Page

    Just install Ryan’s plugin and make a page with Archives template ??

    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    Yes, disable plugin, because when it’s working, it’s using page.php instead home.php

    Next, check yor preferences, may be you changed the permalink structure and blog address and wordpress address in Options, i have both “https://mysite&#8221;

    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    oh, and i did not install ryan’s plugin
    my permalink structure is /%category%/%post%/
    and i didn’t change blog address

    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    Hmm, can’t say what’s wrong, i’m not guru in php
    Did the page “News” listed in pages list ?
    First 2 steps makes the static page your home page. Is it works ?
    Next 2 steps assigns template to your page (name is not important – News, Blog, bla bla bla) wich can contain whatever – the posts re-query from database with your argumens (“showposts=10” in this case)
    May be it helps to you.

    Forum: Fixing WordPress
    In reply to: WordPress as a CMS

    Here is my solution :

    1. Copy page.php -> home.php
    2. Add query_posts("page_id=2"); (where page_id is your page) before the Loop
    3. Copy index.php -> news.php and add at the top
    <?php
    /*
    Template Name: News
    */
    ?>

    And add query_posts("showposts=10"); before the Loop
    4. Make a page named News and assign template News to it

    All works fine, i think. At least for me. And all pages in sidebar lists automatically.

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