Avada / ACF Relationship help

62 views
Skip to first unread message

jo...@johnvisser.net

unread,
Nov 28, 2023, 4:53:33 PM11/28/23
to Minneapolis St. Paul WordPress User Group
Hello. Does anybody have Avada experience?

I have two CPTs set up (lets call it authors and books), with an ACF relationship field set up so that books can be assigned to the author. That's all working.

Now I'm trying to display the book posts on an author page, using Avada's "ACF Relationship" field, and all I get is a NO POSTS FOUND message. I have the ACF field correct, and I've checked over everything, but can't figure it out.

I don't have much experience with Avada, so I'm hoping to get a little help of where I shoudl be looking. I'm under an NDA, so I can't say much about it (and changed the names of the CPTs, but it should illustrate what I'm trying to do).

Thanks for any help you can offer.

Toby C

unread,
Nov 28, 2023, 5:46:12 PM11/28/23
to Minneapolis St. Paul WordPress User Group
John, Are the post types set to "public", "query able", "searchable", etc. in the post type registration?

Toby

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpls-stpaul-wordpress/846ef1cc-8015-408d-9ec4-5326fbcef06bn%40googlegroups.com.

John Visser

unread,
Nov 28, 2023, 6:12:36 PM11/28/23
to mpls-stpau...@googlegroups.com
Toby,

Yup, they are (using ACF's built-in UI for creating CPTs).

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.



Arago, David

unread,
Nov 29, 2023, 6:15:22 AM11/29/23
to mpls-stpau...@googlegroups.com

Hi,

 

I had a situation where I my ACF was not working when referencing the field by the name, but it was when referencing the field by their unique id.  The problem was that I had a duplicate field from a previous enhancement.

 

Not sure if this will help you, but good luck.

 

David.

 

From: 'jo...@johnvisser.net' via Minneapolis St. Paul WordPress User Group <mpls-stpau...@googlegroups.com>
Date: Tuesday, November 28, 2023 at 22:53
To: Minneapolis St. Paul WordPress User Group <mpls-stpau...@googlegroups.com>
Subject: {MSPWP} Avada / ACF Relationship help

[External email – use care when clicking on links or attachments]

--

John Visser

unread,
Nov 29, 2023, 8:51:31 AM11/29/23
to mpls-stpau...@googlegroups.com
Thanks, David. I'll double-check the field names and make sure I don't have any duplicates.

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.


Debra Axness

unread,
Nov 29, 2023, 11:32:47 AM11/29/23
to Minneapolis St. Paul WordPress User Group
I used Avada for a couple of years (not with ACF though). A pretty simple website, no commerce. It started failing - in the dashboard, I could not even display pages to work on them. "Support" from Avada, as a current subscriber, was mostly ignored and useless.
I rewrote the website into Elementor PRO - after being completely unable to even do simple updates on existing pages in Avada.

-Deb

John Visser

unread,
Nov 29, 2023, 12:05:21 PM11/29/23
to mpls-stpau...@googlegroups.com
I certainly tried to dissuade them using Avada, but by the time I was contracted to work on the site, they were already neck-deep into it and refused.

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.


--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.

John Visser

unread,
Nov 29, 2023, 12:10:15 PM11/29/23
to mpls-stpau...@googlegroups.com
Hm... everything looks right, but it's still not seeing them. I can't say I'm very fond of Avada. :/

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.


Arago, David

unread,
Nov 29, 2023, 12:18:47 PM11/29/23
to mpls-stpau...@googlegroups.com

Can you do a db->last_query right after you execute the query?

 

 

Arago, David

unread,
Nov 29, 2023, 12:42:38 PM11/29/23
to mpls-stpau...@googlegroups.com

I hope this makes sense.

 

Example:

 

global $wpdb;

 

// Your query Here:

$sql = “select * from wp_users where userid = %d”;

$param[‘userid’] = 10;

$items = $wpdb->get_results($wpdb->prepare($sql, $params), ARRAY_A);

// End of your query Here.

 

var_dump($wpdb->last_query); //Dump of last query executed.

 

 

John Visser

unread,
Nov 29, 2023, 12:46:32 PM11/29/23
to mpls-stpau...@googlegroups.com
Unfortunately, I don't have that level of access to the site. I have WordPress Admin, and that's it. :/

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.


Arago, David

unread,
Nov 29, 2023, 12:51:02 PM11/29/23
to mpls-stpau...@googlegroups.com

Toby C

unread,
Nov 29, 2023, 1:11:55 PM11/29/23
to Minneapolis St. Paul WordPress User Group
Is the ACF relationship plugin an addon to Avada or in Avada core? I ask, because I used an ACF relationship plugin with Beaver Builder recently that was a pita to configure - perhaps it's the same addon...

Toby

John Visser

unread,
Nov 29, 2023, 4:37:41 PM11/29/23
to mpls-stpau...@googlegroups.com
Toby,

It's part of Avada. I just think it has an issue with CPTs, for some reason.

I ended up subcontracting an Avada expert to slueth this out for me. Work smarter, not harder.

~john

John Visser  |  johnvisser.net
Tenacious, solution-driven WordPress development, optimization, and maintenance in Minnesota.


Reply all
Reply to author
Forward
0 new messages