docker
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Lesson: How to make a static page your “home” pageOk, 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 pageForum: Fixing WordPress
In reply to: WordPress as a CMSi 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 UzbekistanForum: Fixing WordPress
In reply to: Lesson: How to make a static page your “home” pageHere 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 itAll 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 CMSJust 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 CMSYes, 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”
Forum: Fixing WordPress
In reply to: WordPress as a CMSoh, and i did not install ryan’s plugin
my permalink structure is /%category%/%post%/
and i didn’t change blog addressForum: Fixing WordPress
In reply to: WordPress as a CMSHmm, 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 CMSHere is my solution :
1. Copy page.php -> home.php
2. Addquery_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 addquery_posts("showposts=10");
before the Loop
4. Make a page named News and assign template News to itAll works fine, i think. At least for me. And all pages in sidebar lists automatically.