WP and Laravel integration (Updated) [closed]

There is no “generic” way to just smash WP with another app and have it work. It can be roughly split in two cases: Applications run separately on server, installed in different directories, and styled to look as one site (possibly talking to same database, possibly talking to each other via REST API or something). … Read more

Show wrapper divs if query has results, then loop the results [closed]

Your second query was built up a little incorrectly – expanded and indented, it looks like this: if ($portfolio->have_posts()) : while($portfolio->have_posts()) : $portfolio->the_post(); ?> <div class=”other-post col-sm-6 col-xs-12″> <ul style=”color:#f0ad4e;”> <?php if($portfolio->have_posts()) : while($portfolio->have_posts()) : $portfolio->the_post(); ?> <li><h2><a href=”https://wordpress.stackexchange.com/questions/248440/<?php the_permalink() ?>” target=”_blank”><?php the_title(); ?></a></h2></li> <?php endwhile; endif; wp_reset_query(); ?> </ul> </div> You’re starting the last … Read more

New to wordpress. Need Help with templates [closed]

The blog page of my site has the same design as homepage You are in a full control of design in theme. It only does what you code/style it to do. For general direction you need to learn and understand how templates are named/selected and native body classes which WP applies and makes available for … Read more

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