Wordpress site structure and adding subpage - php

i need to edit a Wordpress based site, but i am new in Wordpress and php. Let's say, there is a site myhomesite_com, it has some subpages, like myhomesite_com/about, myhomesite_com/forum and so on. What is the files and folders structure of Wordpress site ? How do i create a new subpage (i.e., myhomesite_com/news) and edit it ?

If you have a working worpdress theme, you do not have to code your subpages. To add new subpages you need to create them on the dashboard. No code skills required here at all.
1) Go to myhomesite_com/wp-admin
2) Go to Pages -> Add New and create your page.
If everything is setup correctly, the page should be up.

Related

Integrate Wordpress post/blog in my website

I have a site which is the cms of Eccube ( ecommerce) . It doesnt have dynamic post feature like in wordpress and all.
I want to integrate the wordpress inside my website. It can be anywhere like new page or anywhere.
I have also installed wordpress inside eccube directory with folder name BLOG .
So the actual path is like this :-
/public_html/azlily.awe.jp/eccube_1/html/blog
I have created a new post, thats fine but going to that post will open in wordpress templates, It will look like two different websites. I want the post to appear inside my eccube website but not with wordpress website.
Any solution for this. I googled but only found Wordpress and html website hook up but not with eccube.
Only one option is redirect wordpress blog to "www.example.com/blog" or "blog.example.com" on click
You can access wordpress blog from "BLOG" folder directly
You need to change layout of the wordpress blog so that it will match with your main website, So that it wont appear like two different websites

Wordpress Select Template for Each Page on Activation

So, I have wordpress multisite. I want my users to be able to activate a new theme, and still have their content in place. The problem I am having is, everytime a new theme is activated, each page's template selection is updated to the 'default' template. I would like for example, the Home Page to keep the home-page.php template etc... I have tried naming the templates in all the themes the same.. but that did not work.
Am i clear? or do I need to explain more? Is this possible?
Firstly take backup of all your WordPress data in .xml file
situated at example.com/wp-admin->Tools->Export
you also customize your new theme in custom tab, there you can access all the previous data from older theme

Wordpress - multiple pages site

I'm fairly new to Wordpress and using the html5blank theme for the first time. I've built the home page with all the code on the page.php file. I have a host of other pages I need to create which I've started doing on the wp-admin dashboard but what I can't seem to figure out is where I put the code for each page?
Do I create individual text files for each - product.php / about.php etc ? How do all the different paths link up on the site?
I'm sure this is a really straightforward thing for an experienced WP developer. Any help appreciated.
You can create a file called aboutus.php and add this at the top.
<?
/*
Template Name: AboutUs
*/
?>
This wil make the template show up on the page atributes in wp, where you can select it as the template for your page. This is very basic... you can read up on template files here... https://developer.wordpress.org/themes/basics/template-files/

Exclude '/category/' from menu links URLs in WordPress

I work with wordpress site, where now category page is accessible from two types of links:
http://SITENAME.com/category/CATEGORY-NAME/
http://SITENAME.com/CATEGORY-NAME/
And from right-side menu the links shown as first type, which is wrong.
I need to setup side-menu links to looks like http://SITENAME.com/CATEGORY-NAME/ (without 'category' in every path).
How it can be done? I haven't found such settings neither in admin panel nor in templates...
I would recommend this plugin:
http://wordpress.org/plugins/wp-no-category-base/
The plugin requires no setup or modifying core wordpress files and will not break any links. It will also take care of redirecting your old category links to the new ones.
If you run a multilanguage site with WPML plugin, try this:
http://wordpress.org/plugins/no-category-base-wpml/

Wordpress custom template doesn't show up for the rest of the world

I am trying to add a custom php page to my wordpress site. this page should be in plain text (no theme or other wordpress b*ullsh*t). So i created a new template in my theme folder, created a new page from wp administration page. Everything worked perfect. But when i logout and try to access to this page, it shows me just an empty wp template with no content in it. I checked that i made the page public.
what's wrong? why is wp showing two different pages for admins and the rest of the world ???
I feel stupid but the answer is very simple: the theme folder for admin and other users were actually different.

Categories