Override categories with Pages (block theme)

In your scenario, where you want to override an auto-generated category page with a manually-created Page in WordPress, especially when using block themes, the challenge arises because block themes use a different file structure compared to classic themes. They rely on HTML templates and theme.json instead of the traditional PHP templates. Here’s a more elegant … Read more

When inserting media file in a post or page, show file name under the thumbnail

By default, WordPress doesn’t provide a built-in option to sort media attachments by file name in the media library interface. However, you can achieve this programmatically or with the help of plugins. Using Plugins: Plugins like “Media Library Assistant” or “Media Library Categories” offer advanced sorting and filtering options for the media library, including sorting … Read more

How to display breadcrumb on category?

If you’re dealing with the default “Category” taxonomy and the post post type, then you can get the post’s attached category terms with get_the_category(). $categories = has_category( $post ) ? get_the_category( $post ) : array(); The has_category() check is there just to fend off other post type posts. get_the_category() gives you an array of categories … Read more

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