Title: Where to insert code?
Last modified: August 18, 2016

---

# Where to insert code?

 *  [sketch](https://wordpress.org/support/users/sketch/)
 * (@sketch)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/where-to-insert-code/)
 * I have downloaded a little plugin to show the latest post but i don’t know where
   i should paste this code? I would like it to appear in my sidebar but I’ve tried
   several solutions but nothing helps
 * HOW TO USE
    Put this function: <? php cypher_latestposts(); ?> */ function cypher_latestposts(
   $before=”, $after='<br>’) { global $wpdb; $output = ”; $max_posts = 5; //Maximum
   posts to be displayed
 * plugin:
    [http://wp-plugins.net/index.php?PHPSESSID=f650d1a597a7d680acc908004deaebe6&filter=latest+posts](http://wp-plugins.net/index.php?PHPSESSID=f650d1a597a7d680acc908004deaebe6&filter=latest+posts)
 * Download URL: [http://cypherhackz.liquidnyquiz.com/downloads/cypher_latest-posts.zip](http://cypherhackz.liquidnyquiz.com/downloads/cypher_latest-posts.zip)
 * Description: Returns a list of the latest posts. You can set how many posts to
   be displayed.
    and my blog page is: [http://www.anoop.be/wordpress](http://www.anoop.be/wordpress)
 * Thanks for the help!

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

 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/where-to-insert-code/#post-263000)
 * **Warning: link may be NSFW.**
 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/where-to-insert-code/#post-263001)
 * sketch: after you activate the plugin, you should add the following to your sidebar,
   where you want the output to occur:
 * `<? php cypher_latestposts(); ?>`
 * What problems were you experiencing?

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

The topic ‘Where to insert code?’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [skippy](https://wordpress.org/support/users/skippy/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/where-to-insert-code/#post-263001)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
