Jump to content

JeffInho

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by JeffInho

  1. Hi Guys, maybe someone can brighten up my day here. I don't php at all, and still trying to do modifications on my own I have this piece of code <span class="updated"><?php the_time('j F Y'); ?> <span class="updated"><?php $u_date = get_the_time('j F Y'); $u_modified_date = get_the_modified_date('j F Y'); if ($u_modified_date !== $u_date) { echo "and last modified on "; the_modified_date('j F Y'); } ?> this script works and displays the proper thing, but I want <span class="updated"> to be conditional too. Either it's on the_time, or if there's a the_modified_date falling into that clause, it should only apply to the_modified_date and not to the entire string (right the "updated" with this code shows the_time + and last modified on + the_modified_date every time I tried to include <span class="updated"> in a if clause, it totally broke my page and I have no idea how to solve this. Would someone be kind enough to point me to the right direction ? thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.