Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main post repeated if post seach field is left blank #24

Open
liblogger opened this issue Jan 15, 2017 · 0 comments
Open

Main post repeated if post seach field is left blank #24

liblogger opened this issue Jan 15, 2017 · 0 comments

Comments

@liblogger
Copy link

(I'm not sure if this is the right place to raise this, as it may just be me missing something rather than a bug in the code - apologies if so!)

I'm using CMB2 and this code to create a one-to-many link between posts, with the post search field in a repeatable group, so that each connected post has some text to provide context to the connection. I've got this working okay - except if a post doesn't have any connected posts. If the field/group is left empty, my post/page template repeats the main post content in place of the expected connected post.

(I've tried using !empty and isset checks - they haven't worked, but again, that may be me missing something obvious)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant