Luo that is great...I've had a look through that and 'think' I understand.
The only thing I need to do with this line is NOT display it at all if there is NO Author credit. This is something to do with an IF statement I think but again I don't know what and where to put it - in the View, in Elementor?
As you can see Luo I am very new to doing this, loads to learn, and really do appreciate your help. Are you available to hire? 🙂
Yes, you are right, it needs [wpv-conditional] shortcodes, and your codes are correct.
As you can see the [wpv-conditional shortcodes does not work as expected insider elementor shortcode widget.
As a workaround, I suggest you try these:
1) Create a content template "by author CT": hidden link
Copy the same codes you mentioned above in it's content:
[wpv-conditional if="( NOT (empty($(wpcf-author-credit))) )"][types field='author-credit'][/types][wpv-view name="production-authors"][/wpv-conditional]
2) Put above content template shortcode into elementor shortcode widget: hidden link
[wpv-post-body view_template="by author CT"]
The original code I did had (wpcf-author-credit) when I think it should be just (wpcf-author) as I only want the author line to display IF the Author is NOT empty. If it IS empty the no line should display.
I know conditional shortcodes DO work on this template as in the BLUE bar under the image there is a 'warning' conditional as follows:
[wpv-conditional if="( NOT(empty($(wpcf-warning))) )"]
<a class="warning" href="<em><u>hidden link</u></em>" title="Find out more about our production selection and why sometimes we need to have this warning"><p class="warning">[types field='warning'][/types]</p><span style="font-size:80%; color:#fff;"> ( find our more )</span></a></div>
[/wpv-conditional]
This works fine.
Might this be something to do with the productions-authors relationship?
Luo is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.
The video you shared do not have any voice so I hardly understand anything.
What if you share problem URL and access details and explain a bit more that what exactly you want to display with author conditionally as well as what is your expected results. That will help me to understand your issue as well as guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I checked the video but still, there is no voice. Can you please just tell me what field you want to compare and what is your expected output and problem URL. Maybe few screenshots will help as well.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Good example Minesh but no...I have just removed the "no items found" from the 'View' but it is still displays the 'Author Credit' By
Of course, I can remove the author credit from the Production and this WILL do the job however I am trying to 'User Proof' the system. I cannot guarantee that 'Users' will NOT add this 'Authors Credit' when adding a production. That's why I wantd to use a IF "Author's Name is NOT empty" SHOW this elementor Shortcode/Element
So basically if there is no author connected with production post you do not wanted to display the "By" text that is coming from the custom field "Author Credit" - do I understand correctly now?