multiple write panels on same page

1 view
Skip to first unread message

kbast

unread,
Sep 18, 2009, 7:48:14 PM9/18/09
to Flutter Support
Newbie to Flutter and don't know much php. . .

Is there custom php I need to insert in my none-widgetized sidebar
(custom theme) in order to get the write panel posts to appear in the
sidebar and not the main post content? In other words, I want two
areas for posts on the same page: "news" and "events' and I am trying
to create a separate write panel for "events" . Have the standard
post loop for "news." But the write panel posts show up in the "news"
main post panel (not a Flutter write panel).

Is this possible?

This looks like a really fab plugin once I get it working for my
client for CMS!

doc4

unread,
Sep 18, 2009, 8:49:02 PM9/18/09
to Flutter Support
kbast,

This is a little confusing, can you post the code from the sidebar
that you are having trouble with?

Thanks,

Doc4
http://www.doc4design.com

kbast

unread,
Sep 18, 2009, 10:27:18 PM9/18/09
to Flutter Support
Sorry for the confusion. I don't have code for the sidebar (other
than the custom html for the custom theme) - The problem is that I
don't know what code to insert in my sidebar.php to create an
additional flutter write panel area for another posting box.

here's the "news" <?php if (have_posts()) : while (have_posts()) :
the_post(); ?>
<div <?php post_class() ?> id="post-<?php
the_ID(); ?>">
<h3 class="h3"><a href="<?php the_permalink() ?>"
rel="bookmark"><?php the_title(); ?></a></h3>
<?php the_content(__('(more...)')); ?>

How do I have an additional posting area via Flutter's write panel in
the sidebar (a custom theme - no widgets) on the same page? Do I
somehow modify the code above? In other words, how I do create two
posting areas / panels on the same page with separate write panels?

As I said, I'm new to php. . .

K



On Sep 18, 5:49 pm, doc4 <doc4des...@gmail.com> wrote:
> kbast,
>
> This is a little confusing, can you post the code from the sidebar
> that you are having trouble with?
>
> Thanks,
>
> Doc4http://www.doc4design.com
Message has been deleted

doc4

unread,
Sep 19, 2009, 3:30:36 PM9/19/09
to Flutter Support
kbast,

Still a little confused but let me try to clear this up. You're
wanting to create a Write Panel with two Custom Fields, one for "News"
and one for "Events." Then display the output of "News" in the main
content and the output of "Events" within the sidebar. Even if this is
backwards is this the general idea?

If so then we need to place the Custom Field in the sidebar but
remember to repeat that initial loop a second time. This is where you
may be having trouble as WordPress has specific rules for multiple
loops http://codex.wordpress.org/The_Loop. Since we don't know what
the first loop containing the "News" looks like I'm going to take a
wild stab at this.

<?php $my_query = new WP_Query('cat=6&showposts=1&orderby=rand');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div>
<h3><a href="<?php the_permalink() ?>"rel="bookmark"><?php the_title
(); ?></a></h3>
<?php the_content(); ?>
</div>
<?php endwhile; ?><

Generally there is no need to add a class to an H3 tag, but other than
that this should get you going.

Doc4
http://www.doc4design.com

kbast

unread,
Sep 21, 2009, 2:35:40 PM9/21/09
to Flutter Support
Thanks very much for your patience with my questions.


Unfortunately, this looks to be far beyond my newbie skills with PHP,
so I'll try a different plug-in.

K

On Sep 19, 12:30 pm, doc4 <doc4des...@gmail.com> wrote:
> kbast,
>
> Still a little confused but let me try to clear this up. You're
> wanting to create a Write Panel with two Custom Fields, one for "News"
> and one for "Events." Then display the output of "News" in the main
> content and the output of "Events" within the sidebar. Even if this is
> backwards is this the general idea?
>
> If so then we need to place the Custom Field in the sidebar but
> remember to repeat that initial loop a second time. This is where you
> may be having trouble as WordPress has specific rules for multiple
> loopshttp://codex.wordpress.org/The_Loop. Since we don't know what
> the first loop containing the "News" looks like I'm going to take a
> wild stab at this.
>
> <?php $my_query = new WP_Query('cat=6&showposts=1&orderby=rand');
>          while ($my_query->have_posts()) : $my_query->the_post();
>          $do_not_duplicate = $post->ID; ?>
>  <div>
>   <h3><a href="<?php the_permalink() ?>"rel="bookmark"><?php the_title
> (); ?></a></h3>
>   <?php the_content(); ?>
>  </div>
> <?php endwhile; ?><
>
> Generally there is no need to add a class to an H3 tag, but other than
> that this should get you going.
>

doc4

unread,
Oct 8, 2009, 11:35:28 PM10/8/09
to Flutter Support
kbast,

Sorry this was too much, but I think what will really help is learning
to place two WordPress loops on the same page. Once you have this the
rest will fall into place. Either way good luck.

Doc4
http://www.doc4design.com
Reply all
Reply to author
Forward
0 new messages