Allow users to upload and display multiple photos

Are you looking for a solution in the front-end or in the admin interface? If you’re looking for something in the admin interface, the following link should help you out for limiting the access to the user which uploaded the image. If you’re looking for something in the frontend, maybe this should help you a … Read more

get_post_gallery with Gutenberg

Using birgire’s suggestions, I came up with the following solution that is working well with both the old pre-WP 4.x data and the newer posts that have been added under 5.0. // if there is a gallery block do this if (has_block(‘gallery’, $post->post_content)) { $post_blocks = parse_blocks($post->post_content); $ids = $post_blocks[0][attrs][ids]; } // if there is … Read more

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