Title: Missing arguments on localhost using wp-sticky
Last modified: August 19, 2016

---

# Missing arguments on localhost using wp-sticky

 *  [ffrapporti](https://wordpress.org/support/users/ffrapporti/)
 * (@ffrapporti)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/missing-arguments-on-localhost-using-wp-sticky/)
 * Hello world!
 * I just discovered how wonderful using WP can be and decided to install it locally
   to work faster on themes.
    My problem is that I’m using Wp-sticky to style some
   posts.
 * The way I achieved this is:
 *     ```
       <div <?php if (is_announcement()) {echo " class=\"primopiano\"";} elseif (is_sticky()) {echo " class=\"notiziadelgiorno\"";} else {echo " class=\"postnormale\"";} ?> >
       <!-- the loop -->
   
       	<?php endif; ?>
       ```
   
 * Ok, seen my bad php knowledge you may want to see all the index.php. I saved 
   a text file [here](http://frario.org/my-index.txt).
 * At [http://pdfumane.org](http://pdfumane.org) you can see the website running
   correctly.
 * The problem is: when running local it reports this error:
    `Fatal error: Call
   to undefined function: is_announcement() in /Applications/MAMP/htdocs/democratico/
   wp-content/themes/democratico/index.php on line 8`
 * And I really have no idea of what that error could come from. Since every other
   theme locally is running fine, i suspect that this is due to a my php coding 
   weirdness.
 * Can someone help?

Viewing 1 replies (of 1 total)

 *  Thread Starter [ffrapporti](https://wordpress.org/support/users/ffrapporti/)
 * (@ffrapporti)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/missing-arguments-on-localhost-using-wp-sticky/#post-709297)
 * Any php programmer with basic knowledge who may help?
 * Could the problem be related to permissions or php version? Now I’ve got version
   4.4.7 . Tried out with 5 but no luck.

Viewing 1 replies (of 1 total)

The topic ‘Missing arguments on localhost using wp-sticky’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ffrapporti](https://wordpress.org/support/users/ffrapporti/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/missing-arguments-on-localhost-using-wp-sticky/#post-709297)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
