intrepidweb
Forum Replies Created
-
Filters should be placed in your functions.php file.
I’m wondering if there is a way to only apply a filter to specific posts. I tried using get_the_ID() in my functions.php file and it doesn’t seem to work.
Forum: Hacks
In reply to: Image Attachment Database EntriesI hate to be the bump guy, but anyone have any opinions here? I’m about to do this, would love to know if anyone knows of an unintended consequences that might occur.
Forum: Fixing WordPress
In reply to: Attachment Page Showing Multiple Files, All With Same NameIt looks like the problem exists for me because of how old my blog is. I would guess that WordPress, at some point, allowed attachments to be uploaded with identical “post_name” values.
So I just spun up a new droplet with base WordPress install, no plugins, etc. I created two posts, then uploaded a file with the same filename to each (but different files). WordPress didn’t allow them to have the same post_name, and did not exhibit the problem. However, when I changed the post_name of both attachments to be the same thing – the problem occurred.
So the problem is matching post_name values, something WordPress no longer allows – but apparently did at some point.
Anyone know of any consequences to manually changing the “post_name” value for the offending images? I was going to do this manually in the database itself – would that cause any problems? Is the “post_name” field for attachments used for anything beyond a situation like this?
Forum: Plugins
In reply to: [WP Super Cache] 1.4.5 Problem with Autoptimize PluginI was able to fix this by adjusting the AllowOverride settings for the AO cache directory.
Forum: Plugins
In reply to: [WP Super Cache] 1.4.5 Problem with Autoptimize PluginThe following line appears to cause the problem:
Options -Indexes