Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Post link defaulting to post-id when no parent is selected, how to set to blank?

$
0
0

Thanks for the quick response, but this does not work.

The snippet you have provided does exactly what the default behavior does; that is, if the parent field is not blank, return the parent field, but if it is blank, return the post link of the current post-id. I tried removing the [wpv-post-link] from the second line, leaving a blank if statement, but that does not work either.

I tried creating a blank custom post in the parent ("no-title"), and this works in that it returns a blank link, however it also means that I would have to filter out all instances of that blank post everywhere else (in archives, etc, etc).

As a feature request, my expected behavior is that setting the parent field as "Not Selected" should be a valid response and return a blank field. Then, if someone were to want to fall back to the current post-id from the parent id, they could use your code snippet above. I am having a hard time imagining any time when I would want what's happening now as default behavior.

Anyway, isn't there a way to accomplish this?


Viewing all articles
Browse latest Browse all 20145

Trending Articles