ACF Post Object

Ticket for: Combo Blocks
0
ACF Post Object 1
Saranya Designs
Oct 31, 2024 09:14 PM 1 Answers
Member Since Feb 2021
Subscribed Subscribe Not subscribe
Flag(0)

Hello! I have the Combo Blocks Pro plugin and a dev site that I just pushed live, where I've built a custom layout that includes a field for an ACF Post Object. In the dev site, the post object link was working wonderfully. Now that I've pushed the site live and the primary domain has changed, the post objects in the post-grid that I built are still using the OLD domain, not the new one.

I've cleared all caches, ran a database search and replace on the domain, and given it 24 hours to update itself. I have also tested the field on the individual posts, and in the actual posts, the links are correct. But in the post GRID, the links are still using the old domain. So the issue is specific to the post grid layout. Can you help me figure out where to clear the post grid layout cache or force the layout update so that the domain on the live version updates?

Please help. Thanks!

2 Subscribers
ACF Post Object 1
ACF Post Object 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
ACF Post Object 4
Azizul Raju
Nov 02, 2024
Flag(0)

Hi, You need to export your customized layouts and then import them to the actual site.
Here is a screenshot for reference - https://imgur.com/fCUfj8G

After a successful import, make sure you have the correct layout selected by editing your post grid.

ACF Post Object 5
Saranya Designs
- Nov 20, 2024 01:16 AM
Flag (0)
0

Hello? Anything?

ACF Post Object 5
Saranya Designs
- Nov 08, 2024 05:58 AM
Flag (0)
0

Just following up on this… given that the official WP documentation says NOT to use {guid} as a link… for exactly this issue…

Is there any other way to setup a link to an ACF post object in the layout builder? It says below the field in the builder:

“Write ACF output template. {post_content}, {post_title}, {guid}, {post_excerpt}, {post_name}, {comment_count}, {ID}, {post_author}”

But there is no URL option or Permalink, for example? Please help?

ACF Post Object 5
Saranya Designs
- Nov 05, 2024 03:27 AM
Flag (0)
0

I notice your support ticket system is turning my code into action, so imagine the following has start and end brackets in it…

I was previously formatting the output as follows:

a href=”{guid}”>{post_title}{post_title}</a

which works, but it's not as clean, is there a parameter for permalink?

4+ more comments. Sign in to Reply
Replying as Submit