WooCommerce pages looks unstyled

In my experience with woocommerce, there are two ways. 1 – Add some extra css to your current theme. For example I want to modify the title of the product : I open the chrome inspector, I see that the product page has a class css for body.single-product. The product container has a class css … Read more

Saving data from custom form in wordpress database

You’re checking isset( $_POST[‘SUBMIT’] ), but there’s no field with that name. If you mean to be checking the submit button, you need to give it a name attribute with the right value: <input type=”submit” name=”SUBMIT” value=”SUBMIT”> Now isset( $_POST[‘SUBMIT’] will be true, and your code will run. Also, you don’t seem to be using … Read more

How to get specific attribute from DB

If the data you placed at the beginning of your question is the result of your database query (I’m unsure by how your question is worded), you will want to take that query result and use the PHP function unserialize() to convert that data to an array, then you can access your data from that … Read more

get_the_ID() doesnt work

get_the_ID is a WordPress core fuction in the global namespace, so you can’t make a second function called get_the_ID as it won’t know which one to use. You should just call get_the_ID() without writing a new function. For your example code, you could do something like this: <div> <?php echo do_shortcode( ‘[svg-flag flag=”‘ . get_post_meta( … Read more

Site downloads files instead of loading them

Sounds to me like PHP is not running on your system, or (perhaps) an older version of PHP. But you can check PHP status by creating a simple PHP file with the command phpinfo(); in it and loading that page in your browser. That should show you the current settings of PHP, if it is … Read more

Issue with custom loop in Archive page

The problem is you aren’t saving your custom query’s results. To do it your way, you would need to save the query’s results to a variable, like so: $myposts = query_posts( $archive_args ); if ( $myposts->have_posts() ) : while ($myposts->have_posts()) : $myposts->the_post(); However, that’s not the most efficient way. WP runs the default query in … Read more