Title: Toggle Switch Posts Homepage
Last modified: August 21, 2016

---

# Toggle Switch Posts Homepage

 *  [Christian](https://wordpress.org/support/users/dauntlessjaunter/)
 * (@dauntlessjaunter)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/toggle-switch-posts-homepage/)
 * Hey guys,
 * I have a vague question and no idea where to ask it, or even how, for that matter.
 * Basically, I wanted to have my front page (home) display about 20 or so post 
   titles (no excerpts, maybe photos). However, I want the each post to be able 
   to “toggle” down when clicked on, expanding for view, rather than loading each
   specific page. Let’s say it is a deal website, with dozens of deals to be posted
   per day, I would prefer that the title of the deal gets listed on the homepage,
   and if clicked, would simply toggle down or expand.
 * My questions are: 1) what kind of technology am I looking for? 2) is this a feature
   that I should find within a theme or plugin? 3? What’s the name of this toggle-
   box item?
 * Thanks so much in advance, and I apologize for these seemingly incoherent sentences!
 * Christian

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 12 months ago](https://wordpress.org/support/topic/toggle-switch-posts-homepage/#post-4942244)
 * > Basically, I wanted to have my front page (home) display about 20 or so post
   > titles (no excerpts, maybe photos).
 * Do you have this already? If so you can use some basic jQuery to achieve what
   you want:
 *     ```
       jQuery(document).ready(function($) {
   
         var postTitle,
             postContent,
             postTrigger;
   
         postTitle = $('.entry-title');
         postContent = postTitle.siblings('.entry-content');
         postTrigger = '<a class="trigger" href="#" />';
   
         // Hide the post content by default
         postContent.hide();
   
         // Add the toggle trigger link
         postTitle.wrapInner(postTrigger);
   
         // On click of the toggle trigger link
         $('.trigger').click(function() {
   
           // Toggle the entry content
           $(this).parent().siblings('.entry-content').slideToggle();
   
         });
   
       });
       ```
   
 * _[http://api.jquery.com/](http://api.jquery.com/)_
    _[http://codex.wordpress.org/Using\_Javascript](http://codex.wordpress.org/Using_Javascript)_
 *  Thread Starter [Christian](https://wordpress.org/support/users/dauntlessjaunter/)
 * (@dauntlessjaunter)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/toggle-switch-posts-homepage/#post-4942256)
 * Wow, Andrew, thanks so much for the quick and thought-out reply! I did not know
   about this, and I’m immensely grateful to be pointed in this direction – my biggest
   problem was not knowing even how to explain myself.
 * I will look into this now. Have a great weekend!
 * Christian

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Toggle Switch Posts Homepage’ is closed to new replies.

## Tags

 * [homepage](https://wordpress.org/support/topic-tag/homepage/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Christian](https://wordpress.org/support/users/dauntlessjaunter/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/toggle-switch-posts-homepage/#post-4942256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
