Results 1 to 6 of 6

Thread: Extend Poster Tab

  1. #1
    Thread Starter
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Extend Poster Tab

    Hi!

    I'm trying to copy the panda guy's poster tab on sidebar-ad.php by putting "other classifieds ads by this poster".

    I figured I can copy the code on the author.php template.

    PHP Code:
     <div class="clr"></div>

                                    <div class="pad5"></div>

                                    <h3 class="dotted"><?php _e('Other items listed by','cp'); ?> <?php echo $curauth->display_name?></h3>
                                    
                                    <div class="pad5"></div>

                                    <ul>

                                        <?php
                                        
    // lets get all the other ad listings by this author
                                        
    $sql $wpdb->prepare("SELECT * FROM $wpdb->posts "
                                             
    "WHERE post_author = $curauth->ID "
                                             
    "AND post_type = 'post' "
                                             
    "AND post_status = 'publish' "
                                             
    "ORDER BY ID DESC");

                                        
    $authorposts $wpdb->get_results($sql);
                                        
    ?>

                                        <?php if ($authorposts): ?>

                                                <?php foreach ($authorposts as $post): ?>
                                                <li>
                                                    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
                                                </li>

                                                <?php endforeach; ?>

                                        <?php else: ?>

                                                <p><?php _e('No ads by this poster yet.','cp'); ?></p>

                                        <?php endif; ?>

                                    </ul>
    But so far, no luck.

    It only says:
    Other ads by (blank here where its suppose to insert the posters name. )

    No ads by this poster yet (even though i definitely have other ads) when I insert it on the poster tab.
    I hope someone can help me.

    Thanks!

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    smcdaniel's Avatar
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    1
    Thanked 13 Times in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Senior Member aggieoutlaw8's Avatar
    Join Date
    Oct 2010
    Location
    United States
    Posts
    125
    Thanks
    0
    Thanked 6 Times in 6 Posts

    ive done the opposite...

    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove sidebar - Extend categories
    By tthornton38 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: August 6th, 2013, 04:51 PM
  2. [SOLVED] Hide Poster Tab
    By epreneur in forum Report ClassiPress Bugs
    Replies: 19
    Last Post: September 8th, 2010, 10:24 AM
  3. User Poster
    By bidatio1 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: June 27th, 2010, 07:24 AM
  4. Contact Poster
    By realestateguy100 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: June 9th, 2010, 01:31 AM