Jack
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Action add_user_meta passes null valuesI believe your WordPress user meta hook is getting fired too early or too late. Most form plugins have their own hooks that fire during different stages of the submission. They are more precise than core WordPress hooks.
I would look for docs about hooks on the plugin’s site and reach out to their support.
Forum: Fixing WordPress
In reply to: Redirection breaking for posts with modified URLsI would try disabling the 404 plugin. Don’t delete it! Then try changing the url of a test page to see if it works now. If it does, the plugin is conflicting and you should reach out to the plugin author.
Forum: Fixing WordPress
In reply to: Use new themes when you have custom pagesThe WP way is to add custom page templates. Then log in to wp-admin and open the page in question. Then on the right hand side, there will be a template drop-down that will let you select the custom template.
To make a new template page that WordPress will recognize, the main thing is to make the top comment block with the right formatting.
Assuming you do that, the rest can be all the custom code you want. Often a good starting point for small mode is to copy and paste the page.php code.
Doc:
https://developer.wordpress.org/themes/template-files-section/page-template-files/Make a new folder in htdocs.
Make a new db and db user in phpmyadmin.
Install WordPress inside your new folder with the DB credentials.
Navigate to the new site with:
http://localhost:8888/new_site_folderForum: Fixing WordPress
In reply to: Smaller version of images are blurry.Are your pictures a different aspect ratio than the pixel size you made for thumbnails? Perhaps the thumbnail images are getting distorted because they don’t fit into that pixel size.
Forum: Networking WordPress
In reply to: Multisite WP redirects don’t work properlyWhat is your local setup built with, eg Wamp, xxamp, etc?
Is mod rewrite enabled on your local multisite?
Forum: Fixing WordPress
In reply to: website doesn’t post to public URL as it looks in localhostOk, I got you now. Your links still all point to local host. That is why image and stylesheets aren’t loading. Just view the page source to see what I mean. You may want to follow the moving WordPress guide here:
Forum: Fixing WordPress
In reply to: website doesn’t post to public URL as it looks in localhostI’m not sure I follow what you see when you visit the public/Internet version of your site?
If you change your hosts record on your local computer, that could cause this issue when you want to switch back to viewing the public version of your domain. If you want to do that, you have to remove your site’s entry from your local hosts file and then flush your DNS.
Forum: Fixing WordPress
In reply to: Auto Image uploadYou should check out WebDav. It works like ftp, but with a folder on your local computer. cPanel has an option to enable it usually. If not, you may need to contact your host about it.
Forum: Fixing WordPress
In reply to: Is there any way to add “Flag selecion menu” ?You can add custom links on your header menu that direct people to the site for that language.
Forum: Localhost Installs
In reply to: Can’t select databaseDoes the database user you made have all MySQL permissions? E.g. create_tables,drop_tables, etc.
Forum: Fixing WordPress
In reply to: Show Private Posts to Users Logged InI would change all roles to have the permission “Read private posts”. By default, a role like subscriber doesn’t have this permission.
Forum: Fixing WordPress
In reply to: Deleted wp-config.phpI would contact your host because it sounds like your ftp account has the wrong owner or something along those lines.
Forum: Fixing WordPress
In reply to: Failed to load content css: //fonts.googleapis.com/cssWhere are you seeing this error?
Forum: Networking WordPress
In reply to: Moderate site creation in multisiteHey that’s good to hear. Perhaps give a good review on the plugin’s page because it looks like it needs more exposure.
Since that question is different, you may want to mark this one as resolved and make a new post for it in the “developing WordPress” forum.
- This reply was modified 8 years, 11 months ago by Jack.