Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Only first set of Custom Widget Showing (http://forum.bytesforall.com/showthread.php?t=16171)

swimflyfast2 Dec 5, 2011 02:31 PM

Only first set of Custom Widget Showing
 
For some reason in my site www.sellfed.com my footer widgets do not show up if I have header widgets. I use Widget Logic to set up which page I want them to show up on using is_page()
The first set shows up, then if I add another to the same widget for a different page under the first one or put widgets in footer they don't show.

Is there some reset code I need to put someplace? where? what? ( <?php wp_reset_query(); ?> ) is this it? will it screw up the rest of the page?

I a am using Juggledad Template (wonderful), widgetlogic (recommend), Atahualpa 3.7.3 (wonderful), Wordpress 3.2.1

juggledad Dec 5, 2011 04:36 PM

I'm not seeing a problem. you are going to have to give a detailed explaination, what widget is where and what the widget logic code is for each.

swimflyfast2 Dec 5, 2011 07:32 PM

Thanks,

There is a four part widget "footer widget 1 -4" that does not show up. I have the following content in footer widget 1
<br>
<center><a href="http://sellfed.com/what-we-do/reputation-management/>Reputation Management</a></center><br> Test Widget in the Footer 1 home
is_page(7) being used in widget logic (the home page called Federal Sales Methods)

In under-header 1 I have
<br>
<center><a href="http://sellfed.com/what-we-do/coaching/>Coaching</a></center>
(widget logic is set to is_page(33) which is My "What We Do" page)

In under-header 1 I have
<a href="http://sellfed.com/what-we-do/"> <img src="http://www.sellfed.com/content/fed-logos-1.jpg" alt="what we do" /></a> (widget logic is set to is_page(50) which is my Experience page)

The ones that show on the home page look great in under-header 1,2, and 3 (photos)

juggledad Dec 6, 2011 04:17 AM

go to ato->export/import settings, export your settings and attach them to a reply using the paper clip icon

swimflyfast2 Dec 6, 2011 05:56 AM

1 Attachment(s)
Here you go

juggledad Dec 6, 2011 09:05 AM

What do you have in the footer widgets? Any widget logic?

swimflyfast2 Dec 6, 2011 09:09 AM

In footer widget 1

<br>
<center><a href="http://sellfed.com/what-we-do/reputation-management/>Reputation Management</a></center><br> Test Widget in the Footer 1 home
now

is_page(7) in widget logic

juggledad Dec 6, 2011 09:20 AM

you need a closing double quote

swimflyfast2 Dec 6, 2011 01:21 PM

that fixed the header problem

Now I have exact same code in footer widgets 1-2 as I do in 1-2 header widget, same widget logic is_page(7) On home page.

No footer widgets showing anywhere in theme pages. I added a page without theme "test page" and the footer widget worked. same code for header widget 3 in footer widget 3 on test page.

juggledad Dec 6, 2011 05:43 PM

Did you check ALL your code for missing double quotes?

swimflyfast2 Dec 7, 2011 06:41 AM

I did not see any open "

All widgets work when they are added via widget logic "is_page(array(x,y,z))" to page with default template. Both header and footer widgets. I dragged them back and forth from header to footer in all combinations.

It's only on the templated pages that I have trouble with them when I drag them to the footer widget areas.

I set up a new page with Supercharge Template and it was all OK, it works, Set up an new JuggleDad page and no go..

juggledad Dec 7, 2011 11:48 AM

Try this, edit the template and change the line
HTML Code:

        $number_of_columns = 1;
to
HTML Code:

        $mccq_page = new WP_Query('page_id=' . $post->ID); /* save the page id */

        $number_of_columns = 1;

then at the end, change the line
HTML Code:

<?php endif; /* END of: If there are no posts */ ?>
to
HTML Code:

<?php endif; /* END of: If there are no posts */ ?>
<?php $wp_query = $mccq_page;  /* reset the page id */ ?>

and see how it works

swimflyfast2 Dec 7, 2011 11:59 AM

This worked, thanks! :)


All times are GMT -6. The time now is 03:44 AM.

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