Johnb81
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display a remote WP pageHi Tuastad,
You can use the PHP include function, but then it depends what you want to display, if the whole page or just the content. To display the whole page, read the following: https://php.net/manual/en/function.include.php
To use include, the server should support Server Side Includes. You should check with your hosting provider to confirm.
Forum: Fixing WordPress
In reply to: Akismet KeyWhat do you mean locked out of WordPress? Do you get any error or so? As regards the Akismet key, all you need to do is while logged in to the WordPress admin portal, navigate to plugins from the left side menu, and under Akismet there is a link “Activate”.
Forum: Fixing WordPress
In reply to: "Nothing Found" error on Home pageIt seems that in the index page you have some sort of code which is trying to retrieve news or so from another source such as a blog. Did you search for the word “Apologies” in all the code to see from where the error is being triggered?
Forum: Installing WordPress
In reply to: Post File Copy, All PHP Files Return 404 ErrorIf the files are there and you are still getting 404’s the only option are the server logs. Wouldn’t it be possible to ask the admin for a copy of the logs?
Else start with the basic. upload a file hello.php with a hello world like the below:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
Call it using a web browser; https://[yourwebsite]/hello.php.
Do you see a hello world text? If yes, you know you are uploading the files to the correct location and PHP is being executed.
Hi Harrisharris,
If you have Xampp you can still publish the website for others to see it.
As regards your query, if you use the same keywords, titles and meta descriptions and keep the same URL structure you should not loose any of the ranking. If you will have different URLs, then you can simply make redirects in a .htaccess file.
E.g. if the file https://www.website1.com/hello.php is now on WordPress as https://www.wordpresssite.com/hello/, you can make a .htaccess file in the root with such a redirection:
Redirect permanent /hello.php https://www.wordpresssite.com/hello/
Not to loose any ranking it is important to:
1. Keep the same titles
2. Keep the same content
3. Keep the same meta keywords and descriptions
4. Same URLs. If you can’t keep the same URLs, then simply make redirects as explained above. Even Google suggests that.Forum: Fixing WordPress
In reply to: Is it possible to show footer from another wordpress siteIn that case I would recommend you to modify the second theme (slave theme which will be retrieving the footer from the original website) and have an include in it. I.e. you use the PHP include to call the other page footer. Example:
website 1 footer is taken from https://www.website1.com/wp-content/themes/theme1/footer.php.
In the slave website, in footer.php you can simply delete all and add something like the following:
include ‘https://www.website1.com/wp-content/themes/theme1/footer.php’;
To do this though the server you are hosting your website on should allow Server Side Includes. You can read more about it here; https://php.net/manual/en/function.include.php
Forum: Fixing WordPress
In reply to: How to compress images to speed up siteIt is still the same. Such image formats are already compressed to almost the maximum since they are designed (especially PNG) for internet use. So the only way to reduce the size of an image is to change the resolution or size. Gzip compression etc won’t help much as when you compare the resources and time you need to compress such an image to the amount of time and resources it takes to send it, it is worth to simply send it.
Forum: Plugins
In reply to: Est ce que le SEO en est affecte ou pas par le plugin?It depends what plugin. By default WordPress SEO is quite good, but there are several other plugins which will definitely help and pimp up the default WordPress SEO. If you are looking for an SEO plugin, I’d recommend:
or
Forum: Fixing WordPress
In reply to: No Facebook Thumbnails From WordPressHI alfiegreen,
This seems to be a very common issue, and if you search this forum you’ll find a good number of posts complaining about it. Check the below out and let us know if it helped.
https://www.wpbeginner.com/wp-themes/how-to-avoid-no-thumbnail-issue-while-sharing-post-on-facebook/
It is possible. WordPress is very flexible. Just so you can have an idea who else uses WordPress, check this out; https://www.ads-software.com/showcase/
Forum: Installing WordPress
In reply to: Unable to connect to databaseI’ve encountered this error a couple of times. By any chance do you have multiple databases hosted? If that is the case, then you should contact the hosting provider and ask them that you need to have separate users for each database.
What is happening here (most probably) is that you are using a common account for all databases, hence when WordPress is trying to connect to the MySQL server, it is unable to select the correct database.
Forum: Fixing WordPress
In reply to: Create links to files from local IntranetTry the following
file:///C:/directory/file.extension
C is the drive letter. Also you should make sure that the web server process has access to read such files.
Forum: Fixing WordPress
In reply to: How to compress images to speed up siteHi Charlietech,
You can simply compress images before uploading them. Most images, such as jpg, png etc are already compressed so it is difficult for a web server to compress them even more.
To resize an image, you can use the default paint shipped with Windows or even better and easier to use, use the free Paint.NET.
It can be downloaded from https://paint.net/
Forum: Fixing WordPress
In reply to: No Facebook Thumbnails From WordPressDid you try to set a featured image for each blog post? It might help.
Forum: Fixing WordPress
In reply to: Is it possible to show footer from another wordpress siteHi Metro,
Yes it is possible to do so. But if both sites are owned by you, why don’t you copy the footer content?
Having 1 website retrieving content from a different website might trigger some security concerns in browsers.