Move pages to subdirectory in Wordpress - wordpress

I have a Homepage setup made with wordpress.
All pages are in the root directory:
www.example.com/
is it possible to move some of my pages to a subdirectory ?
like:
www.example.com/products/
It is important that the root directory stays the same.

Here is simple way to do it.
Create a blank page in WordPress called "Products".
Then for all other pages, select "Products" page as "Parent" page.
Now new url of the page will be like:
yourrootdomain.com/products/page-name
Do the same for all pages you want under the "Products" base/directory slug.
Let me know if you cannot get it working or don't understand it or it does not solve your issue.
Here is how to select Page's parent in page attributes section on add or edit page screen:
https://en.support.wordpress.com/pages/page-attributes/#parent

Related

Wordpress : rename the section url name

I'm managing a site under Wordpress using a visual page builder to create the page and the content (Unyson plugin).
The main content is on the home page (one page style).
The result is nice but the different pages (different parts on the home page) take the name of the section id on the url bar.
Eg for the contact page: ../#section-79
What i would like : ../contact
Here is the site>>> Click on the footer links to see the pages names in the url.
1- Can we give a "title" to a section id ?
Or we have to change the id itself to change the url ?
2- Did not find the file where to change page and section id ?
I should check in the plugin files ? Or the theme files ?
Thx for help
I have had a similar problem. You can change how the path to every WordPress page looks like straight in the WordPress Settings. Here is more detailed information about this process: http://codex.wordpress.org/Permalinks
Hope this helps.

Customize fields such as header paragraph for one page anchor links in wordpress

Currently I am working on Wordpress one page website,I have anchor links on my page which shows content on click event .I want that the content can be modified from the wp-admin for those anchor links. In short it is static right now and the code is written in index.php file.I want to make it dynamic? Can it be done through Wordpress? if yes please suggest me how can i achieve this?
this is an link to my website http://www.laughingcart.com/
I am converting it to wordpress theme.
yes it is possible in wordpress to create dynamic page as home page.
know delete all your code that you have inserted in index.php and remain it as default.then access dashboard panel of the word press site then navigate to the Pages and create new page what ever you want modify your text place links and publish this page. then navigate to the setting->reading and select the front page from drop down and save it you can now see the you pages as home page
Thanks

How do I create a static page and redirect to a WordPress blog without moving files?

I have WordPress installed in the main directory. I want to create a static page so that when the person clicks "click here". It goes to the wordpress blog.
I have tried this two ways thus far.
Created a custom page in wordpress and then had it set as a static page. Problem when someone clicked the linked it redirected back to the splash page.
Put the files in the main directory. Problem the person would have to go to www.example.com/splash.html to get there. I tried creating a htaccess but host gator will not let me.
edit: I figured it out using
<?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) && !$_SERVER['QUERY_STRING']) :
?>
What is the purpose of the splash page if its just one link on it?
One option is to create your page within wordpress and set the frontpage to show as a static page (under settings > reading). On that page link to your /blog/ category or to a custom template page that displays all your blog posts.
If you want to have the same design as the page currently has, you can make a new template out of you current index.php file.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
The simple option is to use a plugin.
http://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/
Gives you the option to Continue on or go back.

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?

Wordpress blog page

Quick question (quick deadline...I know I can use google).
I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up.
Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the posts...
Thanks for the help!
Create a Wordpress Page Template by making a page with any name and this comment at the top:
/*
Template Name: Blog Enitres
*/
Go create a page, use that as the template (there is a selector on the right hand side). Call it whatever and save it. This is your static page.
Then, after that, go down to Settings > Reading and change the 'Home' page to be the page you've created.
Then create an index.php and save it. This will be the template for the displayed posts. Create an empty page and select it at the 'Posts Page' in settings.
To learn more about this functionality go here.
To learn more about the Wordpress loop and how to display entries, visit codex.wordpress.org

Resources