How to disable the question posting date/time?

I want to keep the site looking evergreen. Is it possible to disable the question posting date/time?

If not possible as a set option, what file would we need to hack to disable it?

  • Gabe

    Hey magi. I haven't used this plugin, so I'm not sure if the option to disable the date time is in the back-end user options or not. I took a look at the code and below are my guesses for disabling the date/time.

    The below files are in wp-content/plugins/qa/default-templates.

    Delete the date time in archive-question.php on line 32:

    <div class="question-started">
        <?php the_qa_time( get_the_ID() ); ?>
        <?php the_qa_user_link( $post->post_author ); ?>
    </div>

    becomes:

    <div class="question-started">
        <?php the_qa_user_link( $post->post_author ); ?>
    </div>

    And do the same in single-question.php, delete line 21:
    <span id="qa-lastaction"><?php _e( 'asked', QA_TEXTDOMAIN ); ?> <?php the_qa_time( get_the_ID() ); ?></span>

    In user-question.php on lines 74-76 there is also the below which you might want to remove as well:

    <div class="question-started">
      <?php the_qa_time( get_the_ID() ); ?>
    </div>

    Try those out and see if it works, but backup your files first. If that doesn't work or you're using different templates, just do a search/find for date or time.

    If you need an HTML editor to find the line numbers I was referring too, here's the best free HTML editor I know of: http://notepad-plus-plus.org/

    Hope this helps.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.