Bonnie Martin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Unable to upload PDFWhat exactly happens when you try to upload a PDF file? What is the error message that you’re getting?
Forum: Developing with WordPress
In reply to: Help listing child posts!This shows you the options for ordering posts with some code examples:
https://developer.www.ads-software.com/reference/classes/wp_query/#order-orderby-parametersForum: Fixing WordPress
In reply to: how can i add adsense script?Depends on the type of theme you’re using. If it’s a theme that you’ve developed in-house that’s not getting updates from a third party, you can edit all of your files as you need.
If it is a theme where you’ll be getting updates from elsewhere, you certainly can use a plugin instead, or create a child theme to make edits to the files. These are just options to consider based on your situation.
Forum: Fixing WordPress
In reply to: Header not showingIf this is only happening when you’re logged in, you could have some code that’s set up to only show the header when logged in or if you’re an admin.
This is the is_admin() function documentation:
https://developer.www.ads-software.com/reference/functions/is_admin/This is the is_user_logged_in() function:
https://developer.www.ads-software.com/reference/functions/is_user_logged_in/You could check both functions.php and header.php to see if either of those functions exist, and whether they are related to displaying the header of the page.
Forum: Fixing WordPress
In reply to: how can i add adsense script?As an alternative to using a plugin, you could add the code to the header.php file.
You’ll want to put it in the head section of the HTML, as shown here:
https://support.google.com/adsense/answer/9274516To find and edit the header.php file, you can open it from your FTP access, if you have that. If not, you could find it in your cPanel’s file browser, if you have that. It will be in a folder called “wp-content”, then the folder for your theme.
Forum: Fixing WordPress
In reply to: Hidden redirect to non-existent pageThis might depend on where in your website you create redirects. Here are some ideas:
Some plugins will automatically create redirects for you if you update the URL of a page or post. Do you have something like that installed? You might find it under the Settings or Tools menus.
There are also plugins specifically for creating your own redirects manually. Do you have one of those installed? You might find it on the Plugins page (or, again, under Settings or Tools.)
You can create redirects in your .htaccess file. You can check there to see if there are any.
Your web host might have a place to create redirects. Look around for settings related to redirects.