cyberquill
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to disable text-wrap when aligning image left or right?HTML is fine. Works great. Thanks.
Forum: Fixing WordPress
In reply to: How to prevent unauthorized access to drafts?Not sure what “sending out the right response header” means, and I can’t find the section on “creating a 404 error page” that deals with response headers.
What I can say with certainty is that my custom 404 page gets the same header (
<?php get_header(); ?>
) as all the other pages on my site.Forum: Fixing WordPress
In reply to: How to prevent unauthorized access to drafts?Forum: Fixing WordPress
In reply to: How to prevent unauthorized access to drafts?The only thing that confuses me is that when I log out of my WP and then try to access this URL:
https://blog.cyberquill.com/?p=17799&preview=true
I arrive at my 404 error page, and this visit shows up in my Google Analytics as this URL:
https://blog.cyberquill.com/404.html?page=/?p=17799&preview=true&from
Because now the page I actually visited was my 404 page, not the draft I had attempted to visit.
So when my Google Analytics shows me that https://blog.cyberquill.com/?p=17799&preview=true was accessed (as opposed to https://blog.cyberquill.com/404.html?page=/?p=17799&preview=true&from) and it wasn’t me, I just hope what Google Analytics means to tell me is that only the 404 page was accessed after all.
Forum: Fixing WordPress
In reply to: How to prevent unauthorized access to drafts?OK. Thanks. Good to know. So even with the correct draft URL, no one can actually view it unless they’re logged in.
Forum: Fixing WordPress
In reply to: Google Analytics shows some of my Drafts have been viewedOK, here’s what’s going on:
Those hits appear to be my own. Although I’ve blocked my own IP in Google Analytics so that my own hits on my own website aren’t counted in my Analytics reports, the IP block appears to fail when I access my own WP Drafts in Preview.
When I access all other pages on my site, the IP block works. But not for my WP Preview pages.
Forum: Fixing WordPress
In reply to: Sudden image upload failureThanks. I created that .php file, and it gives me this page. What exactly does it tell me?
Forum: Fixing WordPress
In reply to: Sudden image upload failureI’m afraid I was paying attention neither to the number of images I deleted nor to their file sizes.
But just in case, where exactly do I find this tmp folder on my server? Can I delete its contents myself, or do I have to call customer service and have the folks there empty it?
Forum: Fixing WordPress
In reply to: Sudden image upload failureInteresting. Thank you.
My Linux server says the following:
All “temp” files created in the /tmp directory on our Linux servers will be deleted if they have not been accessed for 720 hours (30 days).
Whatever that may mean.
Anyhow, as per imh_brad’s instructions, I created a phpinfo.php page, and saw that my upload_tmp_dir value is set to /tmp.
Then I looked at my permissions for the Uploads folder. It doesn’t have any numbers (such as 755), but there are three check boxes each (Read, Write, and Execute) next to “Web user permissions” and “Owner permissions.” The box for “Write” next to “Web user permissions” was unchecked, so I checked it.
Now my picture uploading works again.
However, I also deleted some pics in my WP Media Library that I don’t need. So now I don’t know whether it was checking the “Write” box or making room in my Uploads folder which fixed the problem for now.
Forum: Fixing WordPress
In reply to: How to change "Schedule for" default setting in DB?Yes, but I’m talking about the default setting. If I use the dropdown, I can change the date for a specific post, but all my other drafts remain scheduled for immediate publication.
I’d like to set it so all my drafts are automatically scheduled for publication on, say, 1 Jan 2099. Then, anytime I’m ready to publish a draft, I must first change the setting to “immediately.”
Forum: Fixing WordPress
In reply to: How to remove individual posts from index page only?That works. Beautiful. Thank you.
Forum: Fixing WordPress
In reply to: How to remove individual posts from index page only?I don’t understand the information on the page you provided, but adding this to function.php removes all posts in category ID=198 from the homepage and solves the pagination problem:
function excludeCat($query) { if ( $query->is_home ) { $query->set('cat', '-198'); } return $query; } add_filter('pre_get_posts', 'excludeCat');
Leaves me with the prev/next post problem.
Forum: Fixing WordPress
In reply to: How to remove individual posts from index page only?PS:
Actually, I just realized this isn’t a satisfactory solution, either, because the “Previous Post” and “Next Post” links on the single post pages still link to the excluded posts.
So is there a way to prevent the “Previous Post” and “Next Post” links to ignore all posts from categories that are excluded from appearing on the home page?
Forum: Fixing WordPress
In reply to: How to remove individual posts from index page only?Adding the following code to function.php (NOT to index.php) appears to solve the problem:
function excludeCat($query) { if ( $query->is_home ) { $query->set('cat', '-198'); } return $query; } add_filter('pre_get_posts', 'excludeCat');
This has the additional benefit that the excluded post headlines disappear from the “Recent Posts” widget in the sidebar as well.
Forum: Fixing WordPress
In reply to: How to remove individual posts from index page only?Thanks. Translation please, for the code challenged among us. Exactly what piece of code do I have to add where?