ok have a working fix, I used an if else statement combined with is_home to change
<article id="post-<?php the_ID(); ?>" <?php post_class(get_field('custom_field_X')); ?>
to
<?php if ( is_home()) post_class(get_field('custom_field_X'));
else post_class(get_field('custom_field_Y')); ?>>
which has removed the custom_field_x settings from the permalink pages fo the posts.
maybe there is a more elegant solution out there but from my current knowledge this is the best I could do
Related Posts:
- Create additional short URL with custom field and 301 redirect
- Title and post URL based on custom fields?
- How do I get the url slug inside the dashboard for a custom post type?
- Can I access Posts of custom-fields via URL?
- Custom Fields Permalink Plugin not observing hyphens
- Why can’t I get the correct post permalink
- Make custom user_meta as permalink for post
- Permalink structure depending on custom field
- Set new url from custom post field
- Multiple permalinks for a single post from custom field
- How to add a custom field in the advanced menu properties?
- Underscores in custom fields
- Sortable Custom Columns in User Panel (users.php)?
- Add custom field to the archive page?
- Need small coding with Custom Fields Search
- Adding Custom Field to Taxonomy Input :Panel
- Unable to get Preview of Uploaded image within a Custom Meta box
- How to store the value of a custom field dropdown select for post referencing?
- How to filter or search the posts using postmeta tables custom meta fields with wordpress REST API
- Custom bulk action for media gallery items
- WordPress Search Custom Meta Field Only
- Order Custom post type loop by custom field (datepicker)
- Localized Date Format for Custom Field
- Check if the value of a field has changed on save_post
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- Saving custom image meta fields
- Echo values from custom field outside loop php
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- Complex WP_User_Query call fails on production server
- Query post order by post and desc not working
- If category then echo a custom fields
- wordpress custom fields multiple data
- How do I define post titles as images using Custom Fields?
- How to show Small Box Inside Content Area, which holds (text, images, links)?
- Sort custom field by post
- How to order posts by one custom field and filter them by another one?
- Can we create a WordPress read-only virtual field derived from three other fields?
- How to create a gallery custom field for WordPress post?
- Why the pagination for a query modified by pre_get_posts doesn’t mind the number & order of posts sorted & selected based on a custom date time field
- How to display image inside container of custom made widget
- Trying to update_post_meta function
- How do i add custom fields to my themes template file?
- Custom Field to a Role?
- List users by sum of all their posts’ custom field values
- Duplicate (or more) custom fields on many posts. Is there an easy way to clean them up?
- How to add new field to the account address?
- How to pass page as an argument like post in WordPress?
- Sort WP_Query with numeric custom field
- Display Multiple Values of Same Key
- Select custom posts by meta_value and sort by a different meta value
- Front end register with custom fields
- Enable a short code in the custom meta field
- The conditional logic only works to show or hide?
- Automatic linking terms
- Adding extra fields to front end signup form
- Problem uploading different files as custom fields with front end post form
- How to change order of posts in admin
- Custom product fields in wp e-Commerce plugin [closed]
- make a dropdown custom field with ‘cities’ list in it
- How can I modify my meta_query to work with prices that are stored in the database that contain dollar signs and commas?
- How to add extra field in admin comment section
- wordpress multi user question
- How to sort post listing on a page using custom field value?
- Odd functions.php issue in WordPress
- Get Custom Field Name ( Label or Key ) Not Value
- Custom field on Quick Edit using select/dropdown – almost working right but not showing currently selected value
- Type character in name and make it invisble
- How to set up page fields with gutenberg instead of ACF
- Move the post title to another field
- ACF multi taxonomy on filterable gallery
- How to improve my non-unique metadata MySQL entries?
- Ordering by ACF custom field vaule
- Custom user registration fields in user_register hook
- Unable to change checkout placeholder text
- Store comment form custom field in custom database
- add meta box considers the selected option as post parent
- Custom fields multiple commas separated values
- Display taxonomy loop using custom field data
- How do I display a custom field in an existing form on the front end?
- Add custom field information to source meta data
- Change blog post title on main blog page
- Spit out list of distinct instances of custom field?
- How to save array option as text and not integer?
- Delete custom meta
- Display custom fields only if it has a value
- Add nofollow to custom field link and make domain exceptions?
- Filter and display a specific custom field value [closed]
- wordpress simple post multi rating with post_meta and user_meta
- Custom fields are not displaying in page with multiple loops
- Add class from custom field into widget class
- Get multiple posts with some custom fields efficient
- Adding custom field to Lightbox in header only pulls current page data, not Lightbox item data
- Meta boxes not displayed, data isn’t being saved
- Custom fields / meta box output
- Custom registration form and custom field
- Get single image from custom fields made with WCK custom fields creator
- Media Custom Fields – get a value with PHP
- How to add google map to custom field
- How can i put a custom field inside this php
- Conditional display based on ACF checkbox