[SOLVED] widget logic and atahualpa compatibility
I have following problem with atahualpa ( here and here ).
I'm triyng to solve this fault, and thought to use widget logic to don't displayed latest post widget. I set on widget logic form at the bottom of Latest Posts widget : is_404(), and now my banners are properly displayed on the top of the post but, now latest posts widget are disappeared from every page.... Why ? |
I'm not an expert on conditional statements, but maybe what's happening is that you've used Widget Logic to say "display this on 404 pages," so it's ONLY displaying on 404 pages.
|
bigliettaio, what is the code you put in the plugin?
|
You might also want to try using the Display Widgets plugin. You just select the pages you want a widget to appear or not appear on. Simple.
|
JD i put this code:
is_404() Ii think paulee has give the right answer: is like if i have to say to widget logic if in not 404 page displays last posts widget, but how to do? Another "strange think" that happened to my theme: 2 different page not found are generated from the theme depending on 1) using a search form inside the theme: example 2) adding a page that not exist at the end of the url of my site: i.e.: example |
Quote:
|
Quote:
|
try '!is_404()' ths says 'if NOT a 404'
|
Hi JD,
widget is properly displayed in every pages BUT in 404 page not found ALSO. I can't understand what happened. As explain you before it is as atahualpa generate 2 404 page not found 1st for search inside the site 2nd for url that do not exist: try to make a search inside the site and try to add q random word after the url you could notice 2 different 404 page not fourd : first un correct ( according our settings) second displayed properly ( according our setting) ??? |
Ok, what is happening here is that one page is your real 404 page - this shows up when you use xxx.com/foobar, the other page is the search result page. When you search for something and it's not there.
So that is why the widget doesn't show up on the 404 page (the !is_404 handles that) you need to add a not is_search() so try '!is_404() AND !is_search()' of course, if you do a search and find something,the widget ill still not show up. |
OK excellent,
thank you JD, now everythings works in the right way. :) |
All times are GMT -6. The time now is 03:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.