• i am building a site for mobile specifications , news and reviews with Elementor and ACF. Built the Custom posts type with acf, using only for Mobile specs post with same data. https://reviews92.com/mobilespecs/google-pixel-10-pro/

    i want to creat separate cpt for comparison for only 2 mobiles data, no content of individual posts required. Will add content to new post for comparison.

    is there any way to make this comparison dynamically? No front end phone selection is required for now.

    only fixed comparison listed by admin.

    any guide plz

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey @aftab1003

    This is totally doable. A dedicated Comparison CPT with ACF relationship fields is the cleanest way to handle this.

    You can set it up like this; create a new CPT (e.g., mobile-comparison) and attach an ACF field group to it with two Relationship or Post Object fields, one for each mobile being compared (e.g., phone_a and phone_b). Point both fields to your existing mobilespecs CPT as the source. When the admin creates a new Comparison post, they simply pick the two phones to compare. No front-end selector needed. All comparison content lives on the Comparison post itself, as you intend.

    To display it, use get_field() to fetch each selected post object, then pull the ACF fields from those posts using the post ID.

    Could you try that and let me know if it gets resolved?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.