how to get image url from meta value?

This is a serialized array value in the database. WordPress serializes arrays as a way of storing structured data in the database. You need to use get_post_meta() to get the post meta data value, something like this: $array = get_post_meta($post_id, ‘meta_data_key_name’, TRUE); // add the meta data key name Then, you can print the content … Read more

How I can give a php page a style from my theme

There are three css files in your not-styled-like-my-theme page and none of them are coming from the writr theme. The goal you want is to get the writr theme’s css on that page. Unfortunately, I did this in Google Chrome and the results are probably not what you’re looking for. This means your page and … Read more

FATAL ERROR , Sommerce Theme [closed]

If you rename the theme folder(via FTP access, or the File Manager on your hosting control panel), that theme will be disabled. That will let you log in as admin, then you can select another theme. That will temporarily make your site look different, but you will be able to recover and select another theme. … Read more

Display Current Time using shortcode

Add this code in Theme function file functions.php function timeZone_funch( $atts ) { extract(shortcode_atts(array(‘timezone’ => ‘Asia/Kolkata’), $atts)); /* Asia/Kolkata is default Timezone */ $output=””; if (in_array($timezone, DateTimeZone::listIdentifiers())) { date_default_timezone_set($timezone); $currentTime = date( ‘d-m-Y h:i:s A’); $output = $currentTime; } else { $output = “Invalid Timezone”; } return $output; } add_shortcode( ‘current_time’, ‘timeZone_funch’ ); USAGE: [current_time … Read more

PHP 7.3 is required for WordPress 5.2 or Recommendation

To be honest, everything is explained in the article you’ve linked: To run WordPress we recommend your host supports: PHP version 7.3 or greater. MySQL version 5.6 or greater OR MariaDB version 10.1 or greater. HTTPS support So yes – that’s only recommendation (as WordPress definitely will work without HTTPS for example). And later in … Read more

How to format PHP if statement? [closed]

Just some slight syntax errors in your formatting. This should help: <?php if ( function_exists( ‘z_taxonomy_image’ ) ) { ?> <img alt=”” src=”https://wordpress.stackexchange.com/questions/236591/<?php if ( function_exists(“z_taxonomy_image_url’ ) ) { echo z_taxonomy_image_url( $child->term_id ); } ?>” /> <?php } else { ?> <img alt=”<?php esc_html( get_the_title() ) ?>” src=”<?php esc_url( get_template_directory_uri() . ‘/assets/images/blank325_170.png’ ) ?>”> <?php … Read more

how to change “Read more” button position [closed]

You need to first understand how WP theme hierarchy works , then only you will be able to find which file you need to define. Below is the URL to understand how WP theme hierarchy works. https://developer.wordpress.org/themes/basics/template-hierarchy/