Making non Wordpress pages work on a wordpress site - php

I've got a wordpress website, but I'd like it to also work in a way where I can add other, non-wordpress pages and assess them like a normal website. In my case, I have a page in the root of my FTP account: http://puu.sh/3IdDY.png In this case, I want to be able to go to www.labtec901.com/admin.php, which I think I should be able to do, without wordpress coming up and saying it can't find the page: http://puu.sh/3IdI0.png

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

Finding and editing a WordPress site in cpanel w/o access to WordPress

I have a client who needs his website edited, he is no longer in contact with the original creator of the site, and it seems that the creator used WordPress to make the website. I've been able to access the page through cPanel but cannot locate the HTML files necessary to do things such as editing text. I have the ability to change images but the owner would like to remove some pages, etc.
There are also tons of PHP files for the WordPress extensions and such, but I know nothing about PHP.
Would I need access to the wp-admin account that designed the page in order to modify the text?
Wordpress stores page content in a database, which is subsequently loaded by a collection of php files. You cannot change the content or looks of a wordpress site by changing html files.
The easiest way to change content is to log in to the wordpress dashboard of the website. If you don't have the password, you can open up phpmyadmin via cpanel, browse to the wordpress database and find the *yourwebsiteinitials*_users table. In there you can choose one of the accounts that should be there and click edit, then edit the user_pass column, and simply type a new password in value and set function to md5. Then you can go to *yourwebaddress*/wp-login.php in your browser and login with the user you just edited and the new password.
Alternatively you can find posts in the _posts table and change content via phpmyadmin, but it's much easier to do this via the dashboard.
There could be a few things you need to be aware of: and I believe you have a good understanding of WordPress. If not you may want to watch some tutorials about it.
Themes: You need to find out if the previous developer develop with custom template and maybe he hard coded all the text inside themes file which located wp-content/themes/{name of the theme}/ {other file}, in this case, if you are not aware of WordPress theme development or how it structure, I suggest you watch some quick tutorial on it and there are tons.
Yes, wp-admin is the place where you can find all the pages listed or posts or whatever content. By editing page, you easily can change the text or delete the page which not require or add a new page.
Just find what is the way it's coded. then you will able to follow
You can log into the WordPress dashboard from the cPanel, following these steps:
Login to cPanel.
Scroll down to the Softaculous Apps Installer section and click on the WordPress icon:
You will be directed to the WordPress Install tab.
Scroll down to the Current Installations section.
Click on the admin icon to login to the WordPress dashboard without a password:
You will then reach the WordPress admin dashboard- voila!
if you want delete page in WORDPRESS you need to login wordpress and delete from pages and if you need delete custom php pages you need to go to cpanel and public html folder your page name or delete from wordpress go to /public_html/wp-content/themes/active theme name/ and find there page name there extenstion of pages is like pagename.php or pagename.html.

WordPress: Same content from either a subdomain or subdirectory

I apologize in advance for not having very many examples of effort already put into solving this. I've been googling and racking my brain but I can't even begin to visualize how this should be done.
We have a WordPress site with a Woocommerce store. To put it simply, we will be selling products for various resorts, and each resort will have their own product category to keep everything separate. So for instance if someone goes to https://www.oursite.com/resort-1, it'll be a page with all of Resort 1's products. This is all fine and good.
The problem: for each resort, we also have iPad kiosks that will use Kiosk Pro to display each resort's products and allow them to be purchased. These kiosk versions of the site must be accessible via a subdomain, e.g. https://resort-1.oursite.com. These subdomain versions should start with a landing page, then lead to the expected product listing but with a slightly different look (all via css).
My questions:
How can I set up a subdomain to lead to a specific page without using a multisite?
How can I adjust all links on each page so if someone starts on the kiosk subdomain, they'll stay on the kiosk version no matter where they navigate to?
It strikes me that one way to accomplish this would be to:
a) use htaccess to route to a page with the subdomain passed as a var, for example subdomain.domain.com/page to domain.com/page?sd=subdomain
Mod Rewrite Subdomain to PHP with GET variable
Sub-domain as variable in mod_rewrite
and then;
b) include code in your theme if (sd = sudomain ) {do_something()} where do something uses a different style.css and modifies any html within the page as desired.

Create Custom PHP page for Wordpress that doesnt require a page in the DB

I have a multi-site setup and i want to add a global user profile page to all sites. Based on advice i was given i used a page template. I have created a file called myprofile.php and in here it does all the magic to create a page. The problem i have with this is that i must create a page within the WordPress admin panel that uses this template.
With multiple sites on the network I don't want the risk of someone deleting the page from the list or forgetting to add it etc and it causes a bunch of 404 errors, denying users basic functionality.
I want to be able to add a page to my entire WordPress install, including all multi-sites. It needs to be able to do everything that my page template does, but doesn't require a Page to exist in the page listing.
I tried doing this using a php file and using mod_rewrite, calling the WordPress header and footer and this worked, but its returning a 404 error even though the page content is displaying. I was able to manually set the header to 200 using php, but this isn't being picked up by all header scans that i have performed and its not a solution i am particularly happy with. I would like to build this into WordPress rather than making it separate and calling WordPress externally.
Can this be done?
Edit.
In needing a profile page i will also need a login, view other user profile page, change account settings and any other error/account related pages that come with a user profile, so having to create a dozen custom pages for every multi-site is going to be very annoying and messy.
I am also not using the WordPress user database for this as I use the user accounts for various other things outside of WordPress.

Modifying get_author_posts_url() in Wordpress multisite

I'm in a bit of a pickle and I'm not sure how to get out of it. Not sure if this is a known Wordpress multisite bug or not or the way the multisite i am working on was setup. The kind of issue I am having is similar to this one http://www.feedmeastraycat.net/2011/10/04/wp-get_author_posts_url-in-mu-with-sub-directories/
By the way, I've just inherited this project and trying to 'unravel' the spaghetti.
The links created by get_author_posts_url() in theme functions file to generate the link for the author end up having an extra "/blog" in front of them and they should not have it there. Within the child sites, the get_author_posts_url() generated links are all ok and do not contain the "/blog" in the URL string.
Here is the website http://blogs.slq.qld.gov.au/.
When you click on an author link from the feature post tiles, you get an error 404 page returned. If you go into on of the child blogs - it does not happen.
Just trying to figure out a way to remove the "/blog" from the link string data generated by get_author_posts_url()
i.e. make http://blogs.slq.qld.gov.au/business-intelligence/blog/author/grailadmin/
BECOME....
http://blogs.slq.qld.gov.au/business-intelligence/author/grailadmin/

Categories