TehCrucible
Forum Replies Created
-
Forum: Plugins
In reply to: [Bogo] Images in translated CPT posts don’t come accrossTo clarify, the issue we are experiencing is that image attachments aren’t preserved with translations.
For example, we have a website where images are that are uploaded to a post via the Media Library (but not necessarily used in the post content), are pulled via a query to get_attached_media() and used to build a gallery.
When translating a post, those image attachments are not preserved. You can test this by the following steps:
1. Create a new post and select ‘Add Media’
2. Upload an image, but don’t select it. Just close the media library.
3. Return to media library and use the filters at the top to select ‘Uploaded to this post.’
4. You can see the attached image.
5. Translate the post and select ‘Add Media’.
6. Filter by ‘Uploaded to this post’, you will see no attached media.I realise this may be an edge case and that the current setup may even be desired behaviour, however perhaps you could make it an option to preserve media attachments on translate?
Or even give us a hint in the right direction about how we might manage this ourselves with a filter etc, I am a reasonably competent WP developer.
Thanks,
JamieFor reference, the issue is caused by some classes and methods being renamed in the new CF7 4.6. See here for further information on which classes need to be changed:
Solved it. For anyone else who finds this post:
Don’t set the height in the WordPress backend, that way it won’t set the element style. You can then overwrite the default height of 600px with the .google-maps-builder class.
At a guess, I’d say this is only a viable solution if you’re only using the one Google map on the page. As a feature suggestion, giving a percentage or vh setting to the height in the backend would be handy.
Cheers.
Height, not width. The height option on the right doesn’t have a percentage option.
EDIT: Nevermind. It actually had nothing to do with your plugin. So sorry to waste your time. All sorted now. Feel free to remove this and keep up the good work!
Never mind, I just answered my own question. For anyone else who may find this, you can find where to inject css for the cloned item at line 35 of /assets/js/jq-sticky-anything.js.
However, you will actually need to make the changes at the same place to jq-sticky-anything.min.js in order for them to be used. Not sure if this is best practice or not but it worked for me today.
Thanks for making a great plugin!