Title: WordPress Post Date Conditional Script
Last modified: August 30, 2016

---

# WordPress Post Date Conditional Script

 *  [LXXVI](https://wordpress.org/support/users/lxxvi/)
 * (@lxxvi)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/)
 * Before I begin, let me say that I have already scoured this forum looking for
   an existing fix for my issue…
 * Here’s my dilemma. I’m migrating to the newer version of Flowplayer that uses‘
   HTML5’, but I also need the older Flowplayer script to run on older/archived 
   posts created before (August 29th 2015). The problem is that I cannot have both
   new and old scripts running on the same page because they share the same ‘namespace’
   and will create a conflict.
 * This is an example of the old script that I need to run in the header for the
   archived posts:
    `<script src="http://www.mydomain.com/blog/flwplayerfiles/flowplayer-
   3.2.13.min.js"></script>`
 * Does anyone know of…or have a PHP or WordPress script that will display this 
   older Flowplayer .js code in the header if the post was written before the aforementioned
   date?
 * My WordPress URL/permalink formatting is as follows:
    [http://www.mydomain.com/blog/2015/08/30/this-is-an-archived-post/](http://www.mydomain.com/blog/2015/08/30/this-is-an-archived-post/)
 * I’m sure this is a simple script for someone who knows what they’re doing. Your
   help would be greatly appreciated!

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/?output_format=md)
[2](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/2/?output_format=md)
3

 *  Thread Starter [LXXVI](https://wordpress.org/support/users/lxxvi/)
 * (@lxxvi)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/3/#post-6493223)
 * flwplayerfiles is correct.
 *  Thread Starter [LXXVI](https://wordpress.org/support/users/lxxvi/)
 * (@lxxvi)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/3/#post-6493224)
 * Well. Thanks anyways. You have my email if you want the job rather than waste
   the time and work that we’ve already spent here.

Viewing 2 replies - 31 through 32 (of 32 total)

[←](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/?output_format=md)
[2](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/2/?output_format=md)
3

The topic ‘WordPress Post Date Conditional Script’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [date](https://wordpress.org/support/topic-tag/date/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 32 replies
 * 2 participants
 * Last reply from: [LXXVI](https://wordpress.org/support/users/lxxvi/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-post-date-conditional-script/page/3/#post-6493224)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
