Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Show part of the listings on home page list

  1. #1
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts

    Show part of the listings on home page list

    I'm trying to show part of the listings content in the list that is shown on the home page, search results etc.

    I've found the right file to edit:
    wp-content/themes/vantage/single-listing.php

    I've also found the right section (note I've edited the address section to not show on the list for my site):
    <p class="listing-phone"><?php echo esc_html( get_post_meta( get_the_ID(), 'phone', true ) ); ?></p>
    <p class="listing-address">&nbsp;</p>
    <p class="listing-description"><strong><?php _e( 'Description:', APP_TD ); ?></strong> <?php the_excerpt(); ?> <?php echo html_link( get_permalink(), __( 'Read more...', APP_TD ) ); ?></p>

    ...I just can't work out the code that I need to use.

    The content I want to include is within a div that I'm adding when creating each listing.

    I'm able to display the css formatting for the div using the following code (but not the actual content from each listing):
    <?php echo '<div id="buybutton"></div>'; ?>

    What I need to know is, how do I get it to show the div from the listings (the actual content in the div)?

  2. #2
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    875
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. The Following User Says Thank You to joes For This Useful Post:

    demonoid (October 12th, 2013)

  5. #4
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #6
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    875
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #7
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    875
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. The Following User Says Thank You to joes For This Useful Post:

    demonoid (October 12th, 2013)

  12. #10
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to list job categories on the home page?
    By jules in forum JobRoller General Discussion
    Replies: 9
    Last Post: July 3rd, 2013, 04:42 AM
  2. Home page ads list navigation
    By jmarshall in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: September 27th, 2012, 09:25 AM
  3. how to list Category on a new page, just like the directory style on home page?
    By dxf9001 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: June 4th, 2011, 09:36 AM
  4. [MOD NEEDED] show list of ads from query of custom field in a tab on home page
    By iamfabian in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 15th, 2011, 10:42 PM