Title: adding posts differently, help appreciated
Last modified: August 20, 2016

---

# adding posts differently, help appreciated

 *  [kukhen](https://wordpress.org/support/users/kukhen/)
 * (@kukhen)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/)
 * This might be a weird question/request but I am trying to accomplish something
   with wordpress which I think is possible but don’t really have a clue how to 
   do.
 * So here it goes:
 * I had a HTML site using some jquery script which I implemented in wordpress and
   everything went fine. What I now want to do is that whenever I add a post it 
   uses that script. I’ve accomplished this and it works perfectly fine by changing
   to “HTML” instead of “Visual” when adding a post, then entering the following
   code:
 *     ```
       <ul class="articles">
               <li onclick="location.href='article.html'">
                   <div class="animate">
                       <div class="icon"><img src="../img/Gehry3_thumb.png" width="320" height="320" alt="Gehry1" /></div>
                       <div class="description">
                           <h1>Post title</h1>
                           <p>Post text</p>
                       </div>
                       <div class="tags">
                       </div>
                   </div>
               </li>
       </ul>
       ```
   
 * This does exactly what I want it to do. But obviously I can’t expect my client
   to always leave the wp title field empty, enter this exact code under the HTML
   tab, change the picture source, post title, post text and link destination manually
   each time they want to add something new to their site.
 * What do you guys think is the best way to make this more dynamic and easy to 
   use?
 * I know some pluggins have buttons you can add to your toolbars that automatically
   add code whenever you press it, is that a solution? How can you then solve it
   for the client to easily be able to change picture, text and link (want it to
   use <?php the_permalink(); ?> but don’t know how to solve that either!) inside
   of that code?
 * Thank you so much in advance!

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/#post-2307774)
 * Why not put that in the template and not the post? You could have it pull in 
   title and text as you want.
 *  Thread Starter [kukhen](https://wordpress.org/support/users/kukhen/)
 * (@kukhen)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/#post-2307844)
 * This is a part of my template’s index.php, you mean in here?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * I’ve commented out some stuff I don’t want for now, so the only thing there of
   importance is the <?php the_content(); ?> call I think, so I have to go deeper
   and start editing the loop files to do what you are saying, or?
 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/#post-2307894)
 * Yes you’ll probably have to go and edit the loop files. It really depends on 
   how your specific theme is implemented.
 * You could also customize the Posts page to hide the editor window and show metaboxes
   so your users can input the relevant data. Then your theme will pull that metadata
   out and put it into the right places of that code.
 *  Thread Starter [kukhen](https://wordpress.org/support/users/kukhen/)
 * (@kukhen)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/#post-2307898)
 * It was actually quite easy, started to replace the post text, title, image etc
   with the php variables and then I realized how I was supposed to put it in the
   template just as you said. For those of you who are interested:
 * [http://pastebin.com/GuzfVj6J](http://pastebin.com/GuzfVj6J)
 * Thanks guys!

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

The topic ‘adding posts differently, help appreciated’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [kukhen](https://wordpress.org/support/users/kukhen/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/adding-posts-differently-help-appreciated/#post-2307898)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
