Skip to main content
hal's user avatar
hal's user avatar
hal's user avatar
hal
  • Member for 7 years, 11 months
  • Last seen more than 1 year ago
  • Norway
awarded
awarded
comment
Why does wp_query only display the most recent post when using order ASC?
Tested: it works the way I suggested. Thanks again!
comment
Why does wp_query only display the most recent post when using order ASC?
Thank you very much, you are obviously right. However, I can't give up hoping that I still could use my existing data, as comparing the dates as numbers in my head would return the same results? Of course using your meta_query method, instead of filtering in php. Or am I completely wrong?
comment
Why does wp_query only display the most recent post when using order ASC?
Echoing $startDato displays like this: 20230131
Loading…
awarded
awarded
comment
wp_update_post not getting triggered by hook
@nmr That is strange. As I state in the description, the code works in a template file. But not when I try to trigger it by a hook. In the first case, the log is filled with info, and the posts get their status changed. In the last case, nothing happens.
revised
wp_update_post not getting triggered by hook
added 128 characters in body
Loading…
Loading…
awarded
awarded
asked
Loading…
awarded
accepted
comment
Updater user with multiple roles
Seems like a good piece of advice. I'll try that one.
asked
Loading…
awarded