melbari
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Reposting posts specific to days of week?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!
Forum: Fixing WordPress
In reply to: Reposting posts specific to days of week?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; ?> }?>
Forum: Fixing WordPress
In reply to: Reposting posts specific to days of week?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); ?>Forum: Fixing WordPress
In reply to: Reposting posts specific to days of week?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 }?>