• Resolved dsnbld1

    (@dsnbld1)


    …changing post publication dates does not reorganize posts (e.g. 2017 minutes…July minutes… had to retrofit pub date …still shows as latest pub in 2017) …Seem to recall being able manipulate this before. Do have some sticky posts active now…could this be an issue? Thanks

    [display-posts category=”town-council-meeting-minutes” tag=”2017″ posts_per_page=”13″ include_date=”false” order=”DSC” orderby=”date” include_excerpt=”false”]

    Is orderby=”date” publication date? Seems logical …don’t see any alternatives…
    https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Yes, orderby=”date” is the publication date.

    orderby=”modified” is modified date (last time you edited it).

    Are you sure the post date is changing? In the shortcode you can add include_date=”true” to show the post’s date. That might help troubleshooting.

    Thread Starter dsnbld1

    (@dsnbld1)

    This matter was NOT RESOLVED but had to move on since there did not appear to be a resolution. I RECENTLY DISCOVERED the problem and it relates to a plug-in incompatibility with POST TYPES ORDER. (https://ww.wp.xz.cn/plugins/post-types-order/)

    Since one manually rearranges post order via a drag and drop interface I can see as how it might not play well with others. When i deactivate POST TYPES ORDER your plug-in DISPLAY POST SHORTCODE sorting by date works just fine. Unfortunately I have a need to rearrange post order quite often.

    Is there some conditional code that i might be able to add to functions.php that can circumvent or mitigate this incompatibility issue?

    THIS IS JUST ONE EXAMPLE…
    http://washingtongrovemd.org/meeting-minutes/
    2017 TC MINUTES …July 2017 shows at the top (these minutes were added after the fact but date of post publication was edited to fit into the chronology)
    [display-posts category=”town-council-meeting-minutes” tag=”2017” posts_per_page=”13” include_date=”false” order=”DSC” orderby=”date” include_excerpt=”false”]

    When I deactivate the POST TYPES ORDER plug-in it all sorts out correctly (between June & August)

    Plugin Author Bill Erickson

    (@billerickson)

    I recommend you use a different ordering plugin, like Simple Page Ordering, that does not affect WordPress queries throughout the site.

    When you want to order by the manual order you’ve specified, you use [display-posts orderby="menu_order" order="ASC"]

    The other ordering methods (like date) remain unaffected.

    Thread Starter dsnbld1

    (@dsnbld1)

    Thanks Bill…will check it out

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Orderby=”Date” issues’ is closed to new replies.