The issue should be fixed by using one of the 2 methods I presented above. Some store the styling in a custom field (the custom field usually contains the "style" or "css" or "layout" or "styling" wording) and that custom field might need to first be set to "copy" in order to have the styling being carried over to the translated page.Īfter doing this, you should first make a small change on the default language, then save the page, then go to the translation of that page and re-save it - and the CSS should be copied over. Option B - setting the custom fields to "copy"Īnother reason why this might happen is due to the way the content builder or the theme stores the styling for the content. Now switch the language at the top of the backend, go to Pages and click "Edit" on the newly duplicated page (it should open it in the same editor that you created the initial page in, so it should take the layout and instead of using any of the WPML editors, you can manually translate by using the initial editor that you used for the initial default-language page) Select the page that you want to duplicate, select the language that you want to duplicate the page in, and click duplicateĦ. Switch the language back to the original/default language, from the top of the backendĥ. Delete the current translation by switching the flag at the top, go to pages, click "delete" on the page translation, then go to trash and remove it from there, tooģ. Option A: by using the Duplication methodĢ. In that situation, there are 2 options that we have: This topic was modified 3 years, 2 months ago by gdweb01.Sometimes, with content builders, there can appear issues like this for multiple reasons (sometimes some of the modules from the visual builder that are used are not compatible with WPML yet, some updated that have been recently launched with that page builder are not still 100% compatible with WPML, etc.). I really hope someone can show me how to solve my issue. " class=" text-secondary text-600">name ?> Check if the post is already displayed, if so, skip it " class="pt-2 figure-img img-fluid" alt=""> -> $image = wp_get_attachment_image_url($attachment_id, $thumb) 'terms' => $term->slug, //Previously: array('creative'), wasn't working $terms = wp_get_post_terms( $post->ID, 'service_cat' ) " class="btn btn-secondary btn-lg mt-4 px-6"> ĪND THIS IS THE CODE FOR taxonomy-service_cat.php: $image = wp_get_attachment_image_src($attachment_id, $thumb) ?> $thumb = "svc-lg" //thumbnail2 custom size for tax term $attachment_id = get_field('feature_image', $term) The first terms displays correctly at the top of the page, but underneath it it displays the remaining terms and associated posts. Whenever i click on any of the terms, the four terms get displayed including the associated posts. To display ONLY ONE $term and associated posts whenever one of the terms is clicked. I created a CPT: “service” and a Custom taxonomy: “service_cat”, which contains 4 $terms: corporate events, fundraisers, private events and weddings.Ī template file: services-page.php to display the four terms, which seems to work with no problem.Īnd taxonomy-service_cat.php to display one term at a time, every time someone clicks on one term on the services page (which displays the four terms).
0 Comments
Leave a Reply. |