Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Forum: Plugins
    In reply to: Help with subscribe2

    Hi. I recently installed subscribe2 (with postie) and after a few glitches, I finally got it to work. There are several reasons why you might not be getting emails. Are you using the latest version of subscribe2 and the latest version of WordPress? Make sure that the emails didn’t get put in the junk mail folder. Also, sometimes it can take up to 30 minutes for a post to show up, so you may just need to wait a bit. You might want to try looking through other posts on this subject to see if someone has an answer https://www.ads-software.com/tags/subscribe2. Hope this helps!

    Hi. I couldn’t get it to work when I added return(); to line 108, but it did work when I added return true; . Thought this might help someone.

    Has anyone figured this one out? I’m interested in getting this to work, too. Thanks.

    Thread Starter zarastudios

    (@zarastudios)

    Does anyone know where I can edit the code for uploaded images? If you can just point me to the file, I think I can figure it out from there. I’m still learning what everything does in 2.0. Thanks.

    Forum: Plugins
    In reply to: Hiding posts in 2.0
    Thread Starter zarastudios

    (@zarastudios)

    Hi. I’ve tried that and I get a parse error on that line. Is there another way to do this?

    Thread Starter zarastudios

    (@zarastudios)

    Hi. Thanks for your replies. Yes, I have modified the code. I’ve added fields for Address, City, State, etc. To get it to work in the sidebar, I used <?php echo wpcf_callback('<!--contact form-->'); ?>. But for some reason, when the form gets sent, it shows the success message in both the sidebar (where I want it) and in the main body of the page (where I don’t want it). I have looked at the PXS mail form in the past, but I didn’t want to use it if I didn’t have to because I’ve modified the contact form plugin so much already. I wouldn’t mind getting the duplicate emails, but the person I am doing the site for might. Thanks for you help.

    Thread Starter zarastudios

    (@zarastudios)

    bump

    Forum: Plugins
    In reply to: Contact Form in Sidebar
    Thread Starter zarastudios

    (@zarastudios)

    Great! Thanks!

    Thread Starter zarastudios

    (@zarastudios)

    Thanks, but I’ve already tried that. I want the posts to display by date, not alphabetically. They should display by date, but they aren’t and I don’t know why. One of the things I tried was modifying the code like this

    <?php query_posts('cat=1&showposts=1&orderby=date&order=des'); ?>

    but that didn’t work either.

    Thread Starter zarastudios

    (@zarastudios)

    Thanks!

    Thread Starter zarastudios

    (@zarastudios)

    Well, I tried something a little different and got the following error for the News Category, but the Articles Category worked fine:

    WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
    SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id = 4) AND post_date_gmt <= ‘2005-07-08 03:27:59’ AND (post_status = “publish” OR post_author = 1 AND post_status != ‘draft’ AND post_status != ‘static’) AND (category_id = 1) GROUP BY wp_posts.ID ORDER BY post_title ASC LIMIT 0, 2

    This is what I did:


    <p class="title">News</p>
    <p />
    <?php $top_query = new WP_Query('cat=4&showposts=2'); ?>
    <?php while($top_query->have_posts()) : $top_query->the_post(); ?>
    <div class="post">
    <div class="post-info"><h2 class="post-title"><a href="<?php

    the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php

    the_title(); ?>"><?php the_title(); ?></a></h2>
    </div>
    <div class="post-content">
    <?php the_content(); ?>
    <div class="post-info">
    <p class="post-date">Posted on <?php the_time('D j M Y'); ?> <?php

    edit_post_link('(edit this)'); ?></p>
    <?php wp_link_pages(); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <div class="post-footer">&nbsp;</div>
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    </div>
    <?php endwhile; ?>
    <p class="title">Articles</p>
    <p />
    <?php query_posts('cat=1&showposts=2'); ?>
    <?php while(have_posts()) : the_post(); ?>
    <div class="post">
    <div class="post-info"><h2 class="post-title"><a href="<?php

    the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php

    the_title(); ?>"><?php the_title(); ?></a></h2>
    </div>
    <div class="post-content">
    <?php the_content(); ?>
    <div class="post-info">
    <p class="post-date">Posted on <?php the_time('D j M Y'); ?> <?php

    edit_post_link('(edit this)'); ?></p>
    <?php wp_link_pages(); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <div class="post-footer">&nbsp;</div>
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    </div>
    <?php endwhile; ?>

    I also noticed that when I added posts from the News category, they didn’t display on the index page, only posts from the Articles category show up. Thanks in advance for your help.

    Thread Starter zarastudios

    (@zarastudios)

    This is what I did. I still don’t know how to display the news category first, then the articles category. Does anyone have an example that I could look at?

    <p class="title">News</p>
    <p />
    <?php if (have_posts()) : ?><br />
    <?php while (have_posts()) : the_post(); ?>
    <div class="post">
    <div class="post-info"><h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    </div>
    <div class="post-content">
    <?php the_content(); ?>
    <div class="post-info">
    <p class="post-date">Posted on <?php the_time('D j M Y'); ?> <?php edit_post_link('(edit this)'); ?></p>
    <?php wp_link_pages(); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <div class="post-footer">&nbsp;</div>
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    </div>
    <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laqu Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries ??','') ?></div>
    </div>
    <?php else : ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    <p class="title">Articles</p>
    <p />
    <?php $my_query = new WP_Query('category_name=articles&showposts=2'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div class="post">
    <div class="post-info"><h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    </div>
    <div class="post-content">
    <?php the_content(); ?>
    <div class="post-info">
    <p class="post-date">Posted on <?php the_time('D j M Y'); ?> <?php edit_post_link('(edit this)'); ?></p>
    <?php wp_link_pages(); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <div class="post-footer">&nbsp;</div>
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    </div>
    <?php endwhile; ?>

    Thread Starter zarastudios

    (@zarastudios)

    Found the problem. I had extra whitespace in the plugin.

    Thread Starter zarastudios

    (@zarastudios)

    Great! That’s exactly what I needed to know. Thanks for your help.

    Thread Starter zarastudios

    (@zarastudios)

    Great! This is just what I was looking for!

Viewing 15 replies - 1 through 15 (of 25 total)