WordPress Inside Pages Default to Index Always? - wordpress

I set up a site with WordPress using the automatic setup through a hosting provider. I am in WordPress, and it's working well in that I can create pages. However, when I go to view the page, it always defaults to the index page. So for example:
If I go to www.site.com/about
It goes to www.site.com
It does not show the inside pages. I cannot figure out why it is doing this. Any thoughts? I have set up new WordPress sites before and have not run into this problem. Did I miss a step in the set up process?
Any help would be greatly appreciated, thank you.

Without putting my hands on your site it is difficult. Is is possible for you to share a link to your site?
What theme are you using? Are you are using a custom theme? If so check if you have a file in your theme folder that is called page.php and that is not the same as your index file.
Try clicking on the page preview button from inside the page editor. Check the url to be sure it is the one you are expecting.
Have you adjusted the permalinks in your WordPress configuration? Double check that it is valid. Should be something like */%post_id%/%postname%/*
I hope some of that helped. try to give a little more info about you settings.

Related

How to redirect a subpage of one website to another domain?

My question is simple, let's say there is a website created by WordPress with its URL:cuaauc.com, and it has so many sub-pages, including one named cuaauc.com/contact/. I would like to redirect the cuaauc.com/contact/ to other content from my external domain test.com. I understand how to direct cuaauc.com to test.com, but I am not sure how to do the subpage situation.
Please give me some advice, or tell me if this is impossible to work out.
If you just what to set the link for the navigation item in your wordpress site (so that the button 'contact' directs to an external page), you can do this in wordpress backend under Design -> Menus and make the menu item an individual link and set the url.
You can also make a page-template (page-yourpage.php) and set the redirecting in your php file or include (php include or via iframe) the content of your target contact page.
There are also more ways to achieve this.
If you like you can write a little bit more about what you are exactly trying to achieve and why you want to have the contact page being seperated. This way the we can give you better help and can decide which method suits your needs best.
You can use a plugin called Redirection.
After Install an Activate plugin, go to Tools > Redirection
If you are using first time this plugin, you may have to set up this plugin by simply a few clicks.
Then you can add new Redirections rule by click on Add New button.

Wordpress page URL goes to wrong page

I have a weird issue. I am still somewhat new to WordPress and I have an issue that has me stumped.
I have been working on a site created by another developer. I have been fixing the site map by making sure that pages have the appropriate parents and proper permalinks.
I have a situation where I have a page with the following permalink:
http://passaicschools.org/school-no-2/anti-bullying-info/
The problem is that this link takes me to a different page with a different permalink:
http://passaicschools.org/school-no-1/anti-bullying-info/
I can't seem to figure out what is going on here. You can even type in the first url and it "redirects" (it looks like a redirect but I am not using that term in a technical sense).
Can anyone point me in the right direction on this?
Thanks in advance...
I had a similar issue where I created a services page and when I added it to the top menu it kept automatically redirecting to the blog page.
All the permalinks were fine and nothing was set to have a parent page. I read an above comment and tried a reverse effect of actually giving the services page a parent (I made it the blog page it was automatically redirecting to) and then it went to the services page perfectly fine!
I'm not sure how or why this worked but it fixed the issue so I'll worry about permalink aesthetic later haha
go to settings and then pages then set to link path

Backend content of page is not showing in wordpress

Okay so my problem is that, I am currently working on a website which is already been created using wordpress. My problem is that when you see the website page, there is all the data and everything is present. But when I come to the backend of the page in wordpress its not showing any content at all. I mean its like there has never been the data at all in this page. Its so confusing. Please answer me this. And kindly remember that I am not a good coder so anything that is related to coding please ellaborate it with examples.
I 've fixed it.
The problem is in charset of db.
Open wp-config.php file and just change charset to utf8 & comment the old one.
define('DB_CHARSET', 'utf8');
Thanks
Like the other commenters mentioned, you can also insert content into pages on Wordpress with pages on custom themes.
Remember to back up your site before you make any changes.
Try to change your theme by going to 'Appearance->Themes' in the Wordpress admin window and activating a new theme. Head to the page in question and see if the content is still there. If it isn't, it's being added in a custom theme, which is probably what's happening.
If that's all you need to know, you're all set - otherwise, you can use this process to find what's creating the content:
Go to your Wordpress installation directory (you'll know you're there when you see folders like 'wp-admin' and 'wp-content'), then go to 'wp-content->themes' and see what themes you have installed. You can dig around in the php files there to find the content being created. You'll need to play around with PHP if you want to learn more from there.

Renamed a page and changed the slug, now its gone

The title says it. I renamed a page in wordpress along with the permalink (the slug also changed) and now I can't find it on my site.
The menu updated along with my changes, but the page content isn't there when I click on it.
Here's the offending page
If anyone can tell me what I did wrong and particularly how to fix it, I'd really appreciate it.
Thanks in advance!
Try regenerating permalinks - editing permalink settings triggers that regeneration.
Also, if you have any kind of cache plugin running, purge it's data too.
This was a conflict with a portfolio feature in my theme (Bello by WeGraphics)... I renamed the permalink and it works fine now

How do I access to my wordpress pages?

I know wordpress store the page content inside the database. If I wanna to add content and some programming content into the page, how do I do it? Other than going to wordpress dashboard > page > all pages, is there any way to access the page file so that I can directly write the codes to it?
You can use you webhost's file manager, or your own FTP client to modify the files that wordpress is made of. Though I recommend against this; if you want to do work beyond just editing the appearance, you should design your site from scratch. If appearances are all, search for a tutorial on making wordpress themes, then apply your shiny new theme.
You'll use page.php or page-template.php file under wp-content/themes/yourthemeName/
That way you will change the file template....

Resources