Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter melbari

    (@melbari)

    Ahh… it’s a conflict with my “Enhanced Text” widget and “Dynamic Widget” plugin. Only the title of the text widget and not the content is showing. I’m closing the ticket. Thanks for the help!

    Thread Starter melbari

    (@melbari)

    I tried:

    <?php if(have_posts()):while(have_posts()):the_post(); $post=get_the_title(); $today=date(‘l’); if(($today==’Monday’)&&($post==’Monday Drink Specials’)||($today==’Tuesday’)&&($post==’Tuesday Drink Specials’)||($today==’Wednesday’)&&($post==’Wednesday Drink Specials’)||($today==’Thursday’)&&($post==’Thursday Drink Specials’)||($today==’Friday’)&&($post==’Friday Drink Specials’)||($today==’Saturday’)&&($post==’Saturday Drink Specials’)||($today==’Sunday’)&&($post==’Sunday Drink Specials’)){ <?php echo $post; ?> }?>

    Thread Starter melbari

    (@melbari)

    Hmm… I don’t think the php is executing from the php-allowable widget.
    I even tried a widget with simply <?php $date = date(“format”, $timestamp); ?>

    Thread Starter melbari

    (@melbari)

    I’m using a PHP Code plugin so my widget can support and execute PHP snippets. I tried entering the code below but the code is not executing. I’m not a coder so I’m just guessing at what to manipulate. What am I missing? I have created separate posts for each day of the week. Thank you for your help!

    <?php if(have_posts()):while(have_posts()):the_post(); $post=get_the_title(); $today=date(‘l’); if(($today==’Monday’)&&($post==’Monday Drink Specials’)||($today==’Tuesday’)&&($post==’Tuesday Drink Specials’)||($today==’Wednesday’)&&($post==’Wednesday Drink Specials’)||($today==’Thursday’)&&($post==’Thursday Drink Specials’)||($today==’Friday’)&&($post==’Friday Drink Specials’)||($today==’Saturday’)&&($post==’Saturday Drink Specials’)||($today==’Sunday’)&&($post==’Sunday Drink Specials’)){ your post title or content or thumbnail whichever you want to show }?>

Viewing 4 replies - 1 through 4 (of 4 total)