Forum Replies Created
-
AuthorPosts
-
Guillaume LORAIN
ParticipantThe last update fixed this issue. It's now solved.
Guillaume LORAIN
ParticipantOk Thanks.
Guillaume LORAIN
ParticipantAfter few more tests, it seems the problem is linked to "MB Builder" instead of relashionship.
Guillaume LORAIN
ParticipantI think I found the source of the problem.
My custom size name has an hyphen (-) as soon as I change the name of my custom to remove the hyphen and regenerate the images it work.Guillaume LORAIN
ParticipantThanks. It help me.
Guillaume LORAIN
Participantwp_strip_all_tags didn't help me but now I use mb.str_replace('"', "", post.title) so now it's working as i want. I don't know if this code is the best but it's working.
Guillaume LORAIN
ParticipantHere is the code I use in my view :
{% set field = attribute( post, 'photo-q' ) %}
img src="{{ field.medium_large.url }}" width="{{ field.medium_large.width }}" height="{{ field.medium_large.height }}" title="{{ post.title }}"My post title is : What means "N" in the word NASA ?
The output brocken code is :
img src="/20221022215105-1225212.jpg" width="768" height="384" title="What means "N" in the word NASA"I will try to use wp_strip_all_tags to see if it can fix it.
Guillaume LORAIN
ParticipantThanks
October 28, 2022 at 12:17 AM in reply to: ✅Add an edit post button in relashionship - Request feature #38863Guillaume LORAIN
ParticipantThanks
Guillaume LORAIN
ParticipantI found my mistake I just replaced to this part : relationship: { id: 'quiz-question', to: post.ID }
Guillaume LORAIN
ParticipantThanks
Guillaume LORAIN
ParticipantI succeeded to find by myself.
Here is the code to use : {{relationship.to|length }}
Guillaume LORAIN
ParticipantI tried this, but it gave me a fatal error
{% set args = {{ ID }} %}
{% set post = mb.get_post( args ) %}
{{ post.post_title }}Guillaume LORAIN
ParticipantThank you.
-
AuthorPosts