Custom plugin with dynamic child pages listing database records

Welcome to WPSE and developing for WordPress!

Many times functionality is placed in custom plugins, so that if you change your theme, the functionality remains. However, if you already have everything built in a custom theme, you may wish to include the code in that theme so that everything is in the same place. If that’s the case, typically filters and actions are added to your theme’s functions.php file.

Either way, make sure you add code to a custom place – not an out-of-the-box theme or plugin or especially Core itself – because whenever you update those files, it’ll overwrite your changes. This is not the case with plugins or themes you write yourself since there’s nothing on wordpress.org to tell them to “update” anything.

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