Support

Account

Forum Replies Created

  • I was actually able to find a work-around using an Elementor add-on posts grid widget. Works like a charm with a custom post type since i only needed to pull in the permalink of the posts. Thanks again for your help!

  • It’s for better display and organization, yes.

    I’m not sure I want to pass on a Pro yearly cost to my client that they would have to maintain just for this one use. Would a repeater work if this particular custom field is a relationship field pulled from another custom post type (doctors)?

    This is what I am trying to achieve, or something like it:

  • Thanks for your help James! I worked out a solution using pre_get_posts to get the order working properly.

  • To be honest I really have never done a var_dump before. I’ve looked into it and tried a few things but can’t seem to get it to work the way it needs to. It just dumps out a bunch of data I can read but not make much sense of. Then below it spits out the content in DESC order.

    This is my var_dump. I know it’s not right but I don’t know how to get it to where I need it and I’m not even sure it’s placed properly in the template. I’ve placed it just inside the custom loop function and before the query args:

    $myVar = get_posts();
    
    var_dump ($myVar); 

    If it helps, some background…. I have a page called “Executive” and a custom category template to display it. The template displays content from a regular post category called “Executive”. The posts’ content is created using 3 ACF fields. All of the content displays fine when the default DESC order is used but when I switch it to ASC order, it fails and no post content is displayed (global header, footer etc display fine). The reason I need ASC order is because the content doesn’t follow any alphabetical or other priority order, just the date each post was input. Yes, I could re-enter all the posts in backwards sequence and use DESC order but what’s the fun in that? 🙂

  • “Date” is the WP default post_date not an ACF field. I know it doesn’t need to be there since it’s a default, I just added it as part of my debugging as I was trying out other values.

    My site is currently local and I am not at the office right now so I will try the var_dump later and see what comes up.

Viewing 5 posts - 1 through 5 (of 5 total)