If statement
-
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (is_page('36') || is_page('39') || is_page('45') || is_page('47') || is_page('41') || is_page('43')){ ?> <div style="text-align: right;"><h1><?php the_title(); ?></h1></div><br /> <div style="clear:both; text-align: right; direction: rtl;"><?php the_content(__('<strong>Suite</strong>'));?></div> <?php } else { ?> <h1><?php the_title(); ?></h1><br /> <?php the_content(__('<strong>Suite</strong>'));?> <? } ?>
I have this code which works fine, but I’m looking to add another if statement that say [if is_page(’47’)] to remove the [direction;rtl] just for page=47
How can I do that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘If statement’ is closed to new replies.