The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 8 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to: publish posts with wpcf-field to social media
I expect to see: posting a link on FB or TW i would expect to see the content that is wrapped in <div class="teaserTextSinglePage">TEXT</div>, which is the content in the custom field "wpcf-teaser" as follows:
"Herzlich willkommen zum überarbeiteten Museumsblog. Hand auf's Herz, dieses Projekt ist schon länger in Bearbeitung als uns lieb ist, aber gut Ding braucht manchmal Weile. Wir haben uns bereits im Herbst 2014 intensiver Gedanken zur Umstrukturierung des Blogs gemacht und seitdem (manchmal mehr, manchmal weniger) kontinuierlich an der Umsetzung gearbeitet."
Instead, I get: social media skips the teaser in the custom field and shows the content in the native WP text editor as follows:
"Die Umstrukturierung unserer bestehenden und zukünftigen Inhalte basiert vor allem auf einer Analyse, die im Rahmen meines Studiums der Content-Strategie an der FH Joanneum entstanden ist. ..."
Anyone familiar with this issue? I appreciate your help!
thanks for getting back so quickly! it is a simple multiline text field, so i'm unable to add any code. the code is added via the design template. i just added the code above so when you look at the source code of the page you can better understand which text should show up on social media.
hidden link - sorry, forgot to mention that earlier.
i think there's a misunderstanding as to what i'm trying to achieve here. i don't intend to add any code to the custom field, it is on purpose that i can only add text.
all i want is for that text in the custom field at the beginning of my content to show up in the text snippet in social media when i paste a link from my blog post. i can't control how other platforms populate my content, but i can control my blog.
i've attached a screenshot from the wp-types template. i tried stripping the div-tag around my teaser text, but it didn't make a difference. even with a simple p-tag around my teaser, social media still pulled the wrong text. i tried different articles and in incognito mode with the same results.
somehow there seems to be a difference as to how other platforms treat WP native content versus custom fields and i don't understand what i can do to fix it on my end. the only solution i currently see is getting rid of the custom field, which we spent hours on filling for over 500 posts when we just migrated to a new domain...
indeed, you are. everything works fine on the blog, but when i paste a link into social media in order to share a post, the external platform skips the teaser text that should actually show - this goes back to my first post here and the screenshots attached.
again, i stripped the teaser text from all div tags and classes to see if that makes a difference. i thought maybe social media pulls the first paragraph in the content div, but that didn't work either. the only thing that works is if i paste the teaser text into the native editor. however, this would mean i can't use the custom field and i will have to revert all the work we've done pasting the text into that field.
Ok so now I see the issue. You are using another plugin to share the texts on the social media.
The plugin only uses the native editor text. Unfortunately there isn't anything that I can do here because the issue is with the 3rd party plugin.
What i would recommend that you do is to contact the support team for the plugin and see if they can come up with a custom solution to include custom fields in your share content.