custom template display 3 columns

Check with below code you need to start that grid-container div before while loop as like below: <?php get_header(); ?> <?php $args = array( ‘post_type’=> ‘movie’ ); $the_query = new WP_Query($args); ?> <?php if ( $the_query->have_posts() ) : ?> <div class=”grid-container”> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class =”column”> <div class=”img_gallery”> <?php … Read more

How to add a CSS class to this php code [closed]

I am not sure where this html tags are allowed where this text is going, but maybe something like this: $text_to_add_after_price=”<span class=”myclass”> هر متر طول </span>”; Change myclass to the class you want to use.

Add css class to string

Unless you have a different function that we are not seeing, in the <td> of your html, you are calling the function “rcp_print_membership_status”, however, your function name in the first code example is “rcp_get_status_label”. Are you trying to call that first function? If so: As reads: <?php rcp_print_membership_status( $membership->get_id() ); ?> Should read: <?php rcp_get_status_label( … Read more