Skip to main content
Retagged, corrected title
Source Link
Krzysiek Dróżdż
  • 25.5k
  • 9
  • 53
  • 74

How do ito write this conditional statement?

How do ito write this conditional statement?

What is the correct way to write a conditional statement?

                    <?php if is_tag( 'Premium' ){
                     <a href="<?php the_permalink(); ?>" class="info"> Subscribe</a>
                   
                    }else {
                    
                    <a href="<?php the_permalink(); ?>" class="info">Read More</a>
                    }
                    ?>                   

Help Needed.

How do i write this?

What is the correct way to write a conditional statement?

                    <?php if is_tag( 'Premium' ){
                     <a href="<?php the_permalink(); ?>" class="info"> Subscribe</a>
                   
                    }else {
                    
                    <a href="<?php the_permalink(); ?>" class="info">Read More</a>
                    }
                    ?>                   

Help Needed.

How to write this conditional statement?

What is the correct way to write a conditional statement?

                    <?php if is_tag( 'Premium' ){
                     <a href="<?php the_permalink(); ?>" class="info"> Subscribe</a>
                   
                    }else {
                    
                    <a href="<?php the_permalink(); ?>" class="info">Read More</a>
                    }
                    ?>                   

Help Needed.

Source Link
luckyrajiv
  • 47
  • 1
  • 3
  • 13

How do i write this?

What is the correct way to write a conditional statement?

                    <?php if is_tag( 'Premium' ){
                     <a href="<?php the_permalink(); ?>" class="info"> Subscribe</a>
                   
                    }else {
                    
                    <a href="<?php the_permalink(); ?>" class="info">Read More</a>
                    }
                    ?>                   

Help Needed.