Forums

Alternate timeline dates for fictional posts (1 post)

  1. ruzel
    Member
    Posted 4 years ago #

    I have a blog that is fictional. The order of events on the blog does not necessarily match up with the order in which the posts are published. So, I have created a second date attribute for posts in my WP database. In short, there is a "published on" date, the normal "post_date" field, and then there is a "This happened on" date that is a "post_fic_date" field so that I can try to keep track of the order of fictional events on the blog. This has all worked fine so far.

    Now, however, I am trying to create a "the_fic_time()" function exactly similar to "the_time()" function. In fact, I went into template-functions-general.php and copied the code for "the_time", "get_the_time", and "get_post_time" exactly. I created new "fic" versions of each function and tied them to the new "post_fic_date" field in the database.

    When I run it, I get an error that I am calling an undefined function, i.e. WordPress says that "the_fic_time()" is not a function. So my question is this: do wordpress functions have to be declared in some way somewhere else in the WP engine? Shouldn't it be enough that in "template-functions-general.php" I have declared
    function the_fic_time()" etc. etc. ???

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.