I need someone to provide me a quick code for my wordpress SINGLE POST page.
This is what I need to do:
I want to display something on our wordpress posts only if the post is between certain dates
For example, I want to display an image to show only between October 1, 2012 and November 10, 2013
If our wordpress posts are outside of that date range, then it should not display the image.
Please write a working code that does this and provide it to us. We will manually insert it into our script page to see if it works.
We mentioned that we wanted to display an image but in fact, we want to display the following Disqus commenting script code to ONLY SHOW BETWEEN THOSE DATES.
Here is the code:
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'xxxxxxx'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
[url removed, login to view] = '//' + disqus_shortname + '.[url removed, login to view]';
([url removed, login to view]('head') || [url removed, login to view]('body')).appendChild(dsq);
<a href="[url removed, login to view]" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
10 freelancers are bidding on average $45 for this job
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
hi, you need to add customs fields To and From date,once it done,then two line of code is required to show the post with given [url removed, login to view] will replace your code instead of image. thanks