Alright Shane, maybe I'll just end up doing that. Will the WPV fields (Taxonomy titles,etc work at least? If we need the views to be separate then the wpv fields should work OK on both page types regardless?) - because I am losing the ability to display the taxonomy title for a view set to "Taxonomy where this View is inserted" for archive pages. It's not working
Hi Shane,
I have modified my theme's functions.php file to output a custom sidebar for all pages of that custom post type and its taxonomy archives (I use genesis theme so it was just a matter of unhooking the original sidebar and hooking my custom one which is also set from the widgets area)
I just have a question about why this suddenly stopped working after the Views update? It was fine for months before and with the new update it just broke it and now I have to duplicate the view as per your recommendations (and then if I have to change something I have to change it for both of them? which is maybe a bit counterproductive)
Edit: OK I think I'll just use a conditional statement - could you please tell me what conditional to use to detect what kind of page (taxonomy archive / single post) it is before it outputs anything? Is this possible (In PHP it is, right? could we also do that in Toolset as a wpv-condition)? Please let me know, thank you!
So they both return a boolean, this means if the page is an archive it will return true.
Example.
if(is_archive()){
do something
}
elseif (is_single()){
do something
}
I'm not sure why your filter was working before but it seems to have been a bug. How it functions in the newest version is how it should work, because a page and an archive are different and the data they provide are different.
I see that you have is working a bit now, so its just the conditional you need to add.
Oh wait sorry I closed it by mistake - will this work in Views (I've only used it on PHP files and Genesis Hooks)? Do I need to do something to apply it to a wpv-conditional wrap?
Ah yes please! I've always wondered how to to that, if you could wrap them in shortcodes and tell me how to apply it I would appreciate the assist and learn from it as well, thank you so much!
Thank you Shane! I was able to apply the shortcode and it does return a 1 / nothing depending on the page type, but the conditionals aren't working even if the conditions are true, do you have any advice on how to go with this?
Thanks!