Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

sam elh on "php help - how can I use php else to create a rule or condition ?"

$
0
0

Thank you @Iorro for the code. I figured out I had put $count++; in the bottom of the code so pasting it in the beginning did the job.

<?php
  $count++;
  if ($count == 2) : ;
  echo '
-- content a
';
  endif;
  if ($count == 6) : ;
  echo '
-- content b
';
  endif;
?>

Thanks once again :)


Viewing all articles
Browse latest Browse all 13924

Trending Articles