I have a wordpress installed to a subfolder in the root of my site. So if my site is "site.com", the wordpress is in "site.com/blog".
I want to display some posts from wordpress to pages outside of the blog directory. I have read some articles telling that to use wordpress outside it's folder i just have to include or require the "wp-load.php" from wordpress to the page. Now the problem is I have tried using this method, but when I view the page in the browser, it just redirects to "wp-admin/install.php" which doesn't exists because i am at the root directory.
Change your site url from
http://www.site.com/blog/
to
http://www.site.com/
Read http://codex.wordpress.org/Changing_The_Site_URL
In database it would be found in wp_options table
Related
I have ci installed in root and wordpress inside wordpress directory.
I already allowed wordpress to use root by setting site url and main .htaccess to rewrite wordpress directory, but because ci is inside root i have url conflict between ci and wordpress..
You know that ci using pretty links, so when i try to run this for example:
example.com/ci_class/ci_function
It's redirects me to wordpress template with message
Not Found
This happens probably because i included wordpress wp-load.php inside index.php of codeignitier...
What i can to do?
I want to use wordpress functions inside ci, but i also want that ci url works fine...
I am using a wordpress theme which I have modified a bit, based on the "Revera" Wordpress theme.
I have used it on other sites and it has worded fine. However, I have always installed it in the root of the domain. This time I have installed it on http://www.gas-sense.co.uk/blog
It isn't generating the usual homepage layout ( see http://www.georgeedwards.co )
Just wondering if the themes are typically setup to trigger the homepage layout? and if that is defined in a particular section of the php ?
The root folder is not a problem, you probably didn't set up the site url correctly, read the docs bellow
https://codex.wordpress.org/Changing_The_Site_URL
Im trying to install a script "moodle" in a subdirectory of my wordpress website but if I keep it in first level folder i get the wordpress 404 page not available or if I go deeper "2 level folders" it only show me my blog post!
however the url is changing to moodle/install.php !
How can I tell wordpress to ignore that specific subdirectory and everything inside it? i did search and tried some of the .htaccess hits but non actually worked!
I'm in a situation in which I have WP installed and running on the root.
I have a custom created folder, lets call it "my_folder".
"my_folder" is in the root too, and there are files which are included for my themes functions, and that pages content is displayed on the admin dashboard.
The problem comes when i visit this page, the admin menu is still there, but it is not linking like:
mysite.com/wp-admin/etc..
it links like:
mysite.com/my_folder/etc..
Which is incorrect..
I guess this is because admin menu takes relative url (from the current directory which we are in). But how I can fix that?
I have made a website (WP based) and put every stuff inside the /site folder.
I did that, thinking of creating "custom" systems, and putting each one inside a folder, so for example: /promo would go to something else than the website...
But, I have tried with both .htaccess redirect and PHP location redirect, and when I try to "share" the website, without it's /site folder included, Facebook doesen't detect's the site meta...
Also, is it a problem for google, to use redirect's when accessing the website without the /site WP home folder? I mean, a guy comming from a www.onesite.com would have it's "referer" header as onesite, or mysite?
Thanks
I feel like you're creating your own problems. Just put WordPress in document root and don't bother with rewriting to a subdirectory. WordPress won't delete any custom files or folders when updating.
If you have some custom part that you want to reach through http://www.example.com/promo. Put it in the promo folder under the document root.
If want to reach the custom part through http://promo.example.com, just create new virtual host.