How to display MySQL table data which is stored as an array?

I would like to replace those arrays with real values. Is it possible? I am assuming you want to access and print those two variables which is shown as “Array” in the print out (contact, question_answers_array) Solution as follows – replace your foreach look with below (I didn’t test code but should give you an … Read more

Load info from customposttype into template page

You just need to put a query in your template. As an example, I use less conditions. You may add what is necessary later. // prepare arguments $args = array( ‘post_type’ => ‘members’, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘post_status’ => ‘publish’, ); // create a query based on arguments $query = new WP_Query($args); while … Read more

My single.php page skips the first div tag

While it is not officially answered the question, it is a suggested debugging technique for future audience to see how to resolve the related problem: If you ever meet such situation. Then most likely there is some tag(s) is(are) missing creating such cascading effect. So could try to hide the content output first to see … Read more

str_replace remove words from title

the_title() will directly output the title – for your purpose in a string manipulation, you need to use get_the_title() https://developer.wordpress.org/reference/functions/get_the_title/ you also have some php syntax error; try to use: <?php echo str_replace( “(Blu-ray)”,”&nbsp;”, get_the_title() ); ?>