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.
At https://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?
- The topic ‘Missing arguments on localhost using wp-sticky’ is closed to new replies.