Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] widget logic and atahualpa compatibility (http://forum.bytesforall.com/showthread.php?t=5092)

bigliettaio Jan 1, 2010 05:59 PM

[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 ?

paulae Jan 2, 2010 07:54 AM

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.

juggledad Jan 2, 2010 08:26 AM

bigliettaio, what is the code you put in the plugin?

lmilesw Jan 2, 2010 08:34 AM

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.

bigliettaio Jan 2, 2010 09:11 AM

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

bigliettaio Jan 2, 2010 09:39 AM

Quote:

Originally Posted by paulae (Post 21999)
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.

that' s true.

bigliettaio Jan 2, 2010 09:40 AM

Quote:

Originally Posted by lmilesw (Post 22006)
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.

Hi Larry, thanks for the suggestion.

juggledad Jan 2, 2010 09:58 AM

try '!is_404()' ths says 'if NOT a 404'

bigliettaio Jan 2, 2010 01:13 PM

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)

???

juggledad Jan 2, 2010 06:40 PM

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.

bigliettaio Jan 3, 2010 03:56 PM

OK excellent,
thank you JD,
now everythings works in the right way.

:)


All times are GMT -6. The time now is 11:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.