• That’s a really nice plugin which does what it promises. A relatively simple scope, just exactly what I was looking for. Thank you for your effort. One missing feature which I fell like might be useful is to add an activity date. Posts might be published few days after the activity so relying on post submission date may simply impact counters (total montly distance, etc.).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author izem

    (@izem)

    Thanks for the positive feedback!

    You’re probably right, from UX point of view, about separating the activity date from post date. Yet, it will complicate plugin’s implementation. I’ll have to think about it.

    I should document it somewhere, that if one wants to set exact date (and time) for the logged activity, these steps are to be done:

    1. On the “Publish” box (top right), click the “Edit” link to the right of “Publish immediately“.
    2. Update date and time to those of your activity.
    3. Click on the “OK” button.

    This way you can control the activity date (if needed, can be done retroactively).
    If your WordPress site is not dedicated for your sport activity log (and you have other posts), “new” run-log post for an “old” activity might be displayed after “old” post (if their post-date was after the logged activity-date).
    Yet, in most cases, it should be good enough.

    Thread Starter sebastiangurgul

    (@sebastiangurgul)

    Yes, indeed. I could control publishing date with the way you described. Thank you.

    So maybe the only missing feature is now to show the publication date in the title of the Run Log entry. For standard WP posts the date appears but for Run Log post it’s not visible.

    Plugin Author izem

    (@izem)

    Hi Sebastian,

    Please accept my apologies for the late reply.
    The publication date display is a theme-specific, so in some theme it will show and in others not.
    If you know your way around WordPress, you can fix this relatively easy:

    1. From your browser, inspect the HTML/CSS for the publication-date in a regular post.
    2. grep for a key word(s) from the above at your site’s theme files
    3. In the found file(s), look for a condition excluding custom posts (e.g. by including only specific post-types).
    4. Add ‘oi_run_log_post’ to the allowed post types.

    I’ve done the above for “Twenty Fifteen” theme, and found this file:
    wp-content/themes/twentyfifteen/inc/template-tags.php
    It has a twentyfifteen_entry_meta function with this code:

    if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
    		$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';

    Updating it to:

    if ( in_array( get_post_type(), array( 'post', 'attachment', 'oi_run_log_post' ) ) ) {
    		$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';

    fixed it.

    If you have problems – tell me what is your site’s theme, and I’ll try to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A good one !’ is closed to new replies.