Wordpress - only the homepage can be found - php

My wordpress site works perfectly. My pages I create in Wordpress admin panel are displayed in widgets, so if you click on a nav menu item, a div appears and displays the content of it. Perfect. But as soon as I would like to write a new .php page and try to open it like writing "mywebsite dot com / confirmation.php" in the address bar, the bar displays "mywebsite com / confirmation.php" but there is the front page on the screen again. Even if I write anything else after mywebsite dot com/, it shows the index page, no matter what it is.. I tried to write "mywebsite dot com/sdjfhskhdfkshdfkjhsdf" and it still worked, displayed the home page again.
Any ideas?

Save your permalinks and make sure your htaccess is writable when you do so. Also can you get to your "/confirmation" page if you click view page from inside the page in dashboard? Also try changing the template that your new page is using.

Related

XAMPP PHP not showing new files added

doing a school projectwith xampp and php. we got a base website that we have to edit and add features too. but when i add a page with a link to it, it loads the page as blank or doesnt load at all. for example: there is a menu with links to the different pages in. one of them is register. when you click on register. it does change from healthone.localhost to healthone.localhost/register in the browser . but the page does not actually change. it stays on the home page. same happens with newly added pictures. it does load the other already there pictures. but if i change them to something else that new picture doea not load

Strange link bug with hyperlink in Wordpress

When I clicked on link that redirects to Main Shop page of WooCommerce, there is blank page with no products. (see link ПРОДУКТИ in top right bar above the header)
When you click on button from Main Menu it is OK (button: ПРОДУКТИ).
I disable all plugins and change the theme, but with no luck!
See here my website Shop page: https://www.mangustaceramics.com/продукти/
Example of the problem: http://i.imgur.com/KcGSK10.jpg
If you have any suggestions about the problem, I will be glad to hear them! Thank you!
These are technically different links. You can see this by copying the URL from the address bar and pasting them in a text editor.
The top right bar link gives this output:
https://www.mangustaceramics.com/%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%82%D0%B8/
Whereas the main menu one gives this:
https://www.mangustaceramics.com/%d0%bf%d1%80%d0%be%d0%b4%d1%83%d0%ba%d1%82%d0%b8/
You will need to ensure that your URLs are encoded correctly or specify them explicitly using the second link above (with lowercase letters).

Wordpress: How to build a link with php-function call?

I want to add a logout link to my wordpress page.
Logout
The link is visible on the page but when i click it it redirects me to
https://www.mywebsite.de/%3C?php%20echo%20wp_logout_url(%27https://www.mywebsite.de/%27)%20?%3E
which of course result in a 404. Obviously the php code is not executed. What am i doing wrong? How can i build the link dynamically?
EDIT:
I want to place this link via wordpress dashboard to the navigation menu (Appearance -> Menus -> Costum Links). For a first try i just added the link to my front page (Pages -> All Pages -> Choose Front Page --> added link in editor to page content).
In booth cases the php code is not executed but added to the link which results of course in a broken link (404).
The control characters like "<" get substituded. The whitespaces too. Maybe it is a character encoding problem?
Logout
https://developer.wordpress.org/reference/functions/wp_logout_url/
The problem was that is not possible to execute php code in wordpress editor (which is a good thing due to security reasons).
So i found another way: I created a shortcode for generating my dynamic link/url. With the plugin 'Shortcodes in Menus' everything works just fine.

Anchor tag not working in Wordpress

The first thing is that the code is written in HTML and now I am changing this code in Wordpress. I have a home page where I have created a top menu which has links to several other pages.
This is the code I used to link it:
facilities
This was working fine when I was doing in in HTML, but it's not working when I am opening my page in localhost. When I click it, it shows a message that no content is found.
You need to add base url at first. For wordpress, you can do this with get_template_directory_uri().'/facilities.php'
Here, i assumed 'facilities.php' is located on your base directory if there is more directory you need to add those too. Hope, it helps.

wordpress not able to find homepage

This is the website url www.iaspirant.com .
So this will redirect to 404 page. Now the strange thing is when I do a login from wordpress wp-admin and then try to open the website then homepage gets load successfully.
So this happens only when a user is not admin.
Now in order to resolve that I googled lot and tried various approach but with no success.
tried to add 301 redirection in 404 page so that it will redirect to home page but this creates a loop
Try to delete .htaccess file but no difference
Try to change the theme to ensure whether its error in code but no success
If any one can suggest me anything then it will great help.
Try goto to /wp-admin/options-reading.php
And setup Front page displays as static page or post.
Do you have installed any maintenance plugin?
Did you check the permissions? try a permissions plugin
Go to settings->reading and see if you have set Front page displays your latests posts and not a static page
You just made a mistake in Param links:
Change your home param link to http://iaspirant.com/?page_id=428 and
then it would definitely it will wok.
Check also your static page in customization
go to apperence-->themes-->customization and set static page as your home page.

Categories