WordPress cms and blog with same site, how to code blog's index page - wordpress

i am coding up a cms site which also has a blog section by using wordpress.
the website previous had a blog section at /blog, which powered by wordpress, and a bunch of static pages. now they want to convert entire site to wordpress.
basically what i did is making a handful of "page"s , and set the website's index page as one of these static "page". apparently the blog section need to be part of this wordpress installation.
now i am wondering how do i render the index page of the blog as index.php has been taken for the "cms" part?
thanks

Your question isn't very clear - but there are two options for "home" page and "blog" page. Home page you have set, you can then set another page as the blog index.
Of course you will need a page template for that page so that it retrieves the latest blog entries.

Related

For each WordPress page of my site why I have two URLs?

In my website, I set the custom structure permalink to "/post/%postname%". I want the URL of a single blog post like domain/post/postname and it is working fine but in addition to this every page of the website following both domain/post/pagename and domain/pagename URLs but for pages, I only want domain/pagename.
Both of these URLs landing on the same page
https://shergroup.com/aboutus
https://shergroup.com/post/aboutus
I only want https://shergroup.com/aboutus for pages.
Change permalinks from setting to http://localhost/yoursitename/sample-post/
On pages, the simple posts will be changed to the page names.
And in your website, if you want to show a blog page like https://shergroup.com/aboutus/blog/ for that you need to change the slug of the web from /blogs/ to aboutus/blogs in a page but in my opinion, it's fine.
Change Permalink common and optional settings (both), then you will get desired url structure.
Path : Setting > Permalink

How can I access wordpress blog posts url when I used stable page as my blog home page?

I chose a single page as home page in my WordPress blog setting, but I want my posts to be visible as well. Is there a url (or any other way) to access the posts list (like the homepage in normal WordPress blogs)?
In order to do so, you can use recent posts widget plugin.
This demo can help you out (Seek video to 1:00).
Yes there is.
first add new page to your website.
then go to setting>reading and select that page in post page field

Proper setup of custom theme for single page website + separate blog page

I am creating my first WordPress theme with a one-page parallax scrolling style.
I have created my entire website (statically) in the index.php file. It works fine if I set the Admin->Reading setting to 'Your Latest Posts'.
But now I am trying to create a separate page for the blog so I did the following:
I created a file, page.php, with the standard blog page code and gave it a template name.
I set the Blog page on wordpress to use the Blog template.
All other pages (i.e. home, about us, etc.) are set to use default
page template (which should be index.php right?)
I set the Reading settings to Front Page: Home and Posts Page: Blog
All I get is the blog page template for all pages (as if it were the default page template).
How to set up a website like this?
index.php should really be your blog template not your static home page. Make a copy of page.php to page-home.php (or whatever you've named your front page), then put the static content in there. You probably won't even need to assign the template to the page - WordPress will do that automatically based on the file name.
By default, page.php is used for all static pages, index.php is used for whatever you've assigned as your blog page in the "Reading" section of the dashboard. index.php is also the template of last resort, which will be used if WordPress can't find any other appropriate template files.

Blog section within wordpress

I have a site and I'd like a sub section of that site to be blog.
Details:
The site is fairly dynamic.
I have image carousels that get populated via custom-post-types utilizing featured images.
I have titles and headers being populated via custom-post-types and etc... That's all in the index file.
I want to create a pure blog (i.e. news style subsection of the site that aggregates latest blog posts on the www.domain.com/blog, has widget areas that post related content, comment sections, etc etc...) as a subfolder of the landing page.
I was thinking that I would create a new instance of wordpress and put it in a subdirectory of the domain called blog. Obviously this is not an optimal solution.
I'd appreciate any help.
No reason to do another install of wordpress. Just create a separate template and go from there.
These two links should get you started:
http://codex.wordpress.org/Stepping_Into_Templates
http://codex.wordpress.org/Template_Tags/get_posts

Why does my blog page only show one post?

I didn't think I would encounter this kind of problem in creating a static front page because this seems to be a very trivial customization of wordpress. I am using Thematic as my parent theme. I created a home.php template and pasted the code from the parent's page template into it. I also created two new blank pages named Home and Blog. I set home.php as the template for page Home. Then I went to Settings->Reading and set my front page to a static page and selected page Home. I also set posts page to page Blog. Now when go to my Blog page, I only see a single post?
What is set for "Blog pages show at most" in Settings>>Reading? Do you have more than one post?

Resources