• ffrapporti

    (@ffrapporti)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter ffrapporti

    (@ffrapporti)

    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.