PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in Stack trace:\n#0 [internal function]: img_caption_shortcode()

You’re mis-using the caption shortcode here You can fix it by adding a width option, which is required per the official documentation In any case, this is also likely a bug in WordPress (misusing a shortcode shouldn’t result in a PHP Fatal Error). See the following bug report: https://core.trac.wordpress.org/ticket/59206

Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks

Thank you for the responses Tom! You got me on track, I should have checked the rendered html earlier. Here’s the answer. The rendered html was showing hidden inputs, for clarity, I’ll just repeat my previous form with the hidden inputs that were being rendered: <form method=”post” action=”<?php echo admin_url(‘admin-post.php’); ?>”> <label>This form wont work</label> … Read more

Get variable from url

There were actually 2 issues. First, I had to use get_query_var. Secondly, for some reason Permalinks were set to a weird custom structure. It’s working now.

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