Understanding images handeling

They aren’t the same, one is the URL of the file in the uploads folder, the other is the permalink of the attachment post that represents that file. All uploaded files have attachment posts, that’s what you’re seeing listed in the media library. WordPress itself doesn’t know about the files and can even show things … Read more

Changing Theme produced a problem on some pages

The error message you’re encountering in WordPress suggests a notice-level issue in the code, specifically in the exclude_pages.php file of the ‘Exclude Pages’ plugin. This issue seems to be related to PHP’s handling of variables and references. Here’s how you can address it: Understand the Error: The notice is indicating that a variable is being … Read more

‘Add Media’ to post – filter images

Well I have figured out the answer to my question. As mentioned in the comments, I’m making an ajax call to get the list of entries for the custom ‘select’ dropdown. In the ajax function, I’m comparing window.location.pathname to this regex:var regex = /\/wp-admin\/post[-new]*\.php/; to make sure that it only executes when I’m trying to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)