Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 174 total)
  • Author
    Posts
  • EddyPiVEddyPiV
    Participant

    Hi Long, no problem. Its working fine at my end, so let's close it. Seems false alarm.

    EddyPiVEddyPiV
    Participant

    Update: I don't know why, but the critical error no longer appears and the system acts normally.
    Yet, I find it weared and a bit concerning receiving such alert.

    Perhaps for you to have a look if action is required?

    in reply to: How to Autofill the Title? #22753
    EddyPiVEddyPiV
    Participant

    No, what I need is the time in my own timezone (Amsterdam timezone). In the settings of the website it is configured like that, but when I use .date('d-m-Y H:i:s'), it adds the time according to UTC, which is 1 hour different from my timezone. I understood that the date function is meant for the local timezone. So I wonder why it adds UTC time, and how to add the local time instead.

    Thanks for your help.

    in reply to: How to Autofill the Title? #22744
    EddyPiVEddyPiV
    Participant

    Hi, Giovani, works perfect, thanks so much!

    Just 1 question: I have added the time, tried varies variations, but it keeps coming with UTC time iso the local time.
    Checked my settings, set to local (Amsterdam) timezone.
    Any idea how to get that correct as well?

    in reply to: How to make checkbox field mandatory #22740
    EddyPiVEddyPiV
    Participant

    Thanks, that works great!

    in reply to: How to Autofill the Title? #22739
    EddyPiVEddyPiV
    Participant

    Hi, the first scenario. It is a sort of attendance registration.
    The user logs in, and then does the checkin. He will be the author of the post, but I want his displayname as title of the post.

    Hope that makes it clear.

    in reply to: How to add WP comment box to custom post type? #22724
    EddyPiVEddyPiV
    Participant

    Yes, that's working now. Thanks!

    in reply to: How to add WP comment box to custom post type? #22705
    EddyPiVEddyPiV
    Participant

    Hi Long,

    The screenprint you sent I recognized, but I installed yesterday the extension version 2.0.4 and the screen looks different, and... the support page doesn't respond.
    https://share.getcloudapp.com/P8uyKp7x

    in reply to: I get a 404 screen when viewing a post of a CPT #22697
    EddyPiVEddyPiV
    Participant

    Found it. Resolved.

    in reply to: Assign default value to DATE field? #21890
    EddyPiVEddyPiV
    Participant

    Yes, that was it. The format mistake I already figured out.
    Thanks, let's close this thread.

    in reply to: Assign default value to DATE field? #21885
    EddyPiVEddyPiV
    Participant

    That indeed resolves the critical error.

    And some new questions arise...

    Question 1:
    There are 2 posts found, 1 with date today, 1 with date 3 days ago.
    Yet, the post.date for both (according to the view) are shown as today. Why is that???
    Print of database: https://share.getcloudapp.com/X6uN152L
    Result of the View: https://share.getcloudapp.com/L1uJA65q
    The View-code: https://share.getcloudapp.com/xQuL2Og7

    Question 2:
    At least 1 post should be displayed with its details, but there are no posts displayed.
    Considering the post.date for both showing today, both should be displayed.
    Why are no posts displayed?
    Something with stored formats? How to formulate the condition correct?

    in reply to: Assign default value to DATE field? #21880
    EddyPiVEddyPiV
    Participant

    Hi,

    I know, the devil is in the details... I should have added the mb. prefix...
    But it doesn't resolve the critical error.

    Deleting the "if" construction avoids the critical error, so it is really in this statement.

    https://share.getcloudapp.com/nOukxRmP

    in reply to: Assign default value to DATE field? #21873
    EddyPiVEddyPiV
    Participant

    Actually, I found out that what I wanted to do wouldn't work: I was trying to set the expiration date fields of the Post Expirator plugin, but there is more needed to get it to work, probably setting a cron job.

    So my question is now a bit different.
    I am now skipping the posts that are older than 24 hours.

    I included this if statement: {% if {{ post.date }} > strtotime('-1 day') %},
    but WordPress didn't like it... critical error on the website.

    Here is the view: https://share.getcloudapp.com/RBuOpJkA

    in reply to: How to show all posts for specific taxonomy? #21842
    EddyPiVEddyPiV
    Participant

    Hi,

    To me is doesn't make sense to define multiple taxonomies for actually the same thing, with all having the same items.

    Anyway, I tried your approach and it indeed showed the pagination link, but also in case it shouldn't.
    For one type I had only 3 instances, these were shown, plus the Next link.
    Pressing that next link told me that there were 14 posts, and the last 4 were shown. So it looks like it thought it had shown 10 occurrences on the previous page...

    Whatever, it introduced new questions, and I have the feeling that I take 2 steps back again, while I am so close.

    My decision is to stay with 1 taxonomy and with your solution for the custom pages based on get-posts, with a larger number of posts to show, and forget the pagination.
    This works, looks nice, and I expect it will be acceptable to the client.

    Thanks a lot for your patience and help.
    Let's close this thread.

    in reply to: How to show all posts for specific taxonomy? #21823
    EddyPiVEddyPiV
    Participant

    Hi,

    That's what I meant when I said that for me the coding is more difficult for Custom views than for the Archive views. In the archive views we have the {{ mb.get_the_posts_navigation() }} function, but that doesn't work for the custom view.
    I have puzzled many hours to get this figured out for the custom view, but without success. All the time I get "critical error on my website" message.

    Isn't there any help to get this easier supported for custom view??

Viewing 15 posts - 91 through 105 (of 174 total)