It means there’s an invalid argument supplied…. Interesting, I don’t get that. Let me play with it tonight and see what I can come up with.
TG
I figured out why I don’t get the error. I changed my index.php to not show categories for “static” pages. I did it like so:
<?php if (staticeez_IsPostStatic()) { ?>
<?php edit_post_link(); ?>
<?php } else { ?>
-- regular code for the meta data
<?php } ?>
the statieez_IsPostStatic() returns True/False depending if the flag has been set. So I check for it, and if it’s set, all I display is the “Edit This” link. If it’s not set, then I print out the normal post meta data – categories, date, time, edit this… etc.
TG
Thanks TG. Sorry to ask but where does it go in index.php? I’m not a PHP user (until now) so I have no idea.
Where abouts (e.g. what I am I looking for?)
Seb
You’re looking for a line that is wrapped in a div tag where class=meta… It’s hard for me to say, as I’ve severly hacked the way mine looks. It should be just before the call to the_content() but after the title of the post has been printed out.
TG
Just a thought, but did you select a category for any of those posts? Sometimes that can be overlooked.
Hi
The section looks like this but I still have no luck (taken from index.php):
<div class=”storycontent”>
<?php if (staticeez_IsPostStatic()) { ?>
<?php edit_post_link(); ?>
<?php } else { ?>
<?php the_content(); ?>
<?php } ?>
</div>
However, I also tried it as
<?php if (staticeez_IsPostStatic()) { ?>
<?php edit_post_link(); ?>
<?php } else { ?>
<div class=”storycontent”>
<?php the_content(); ?>
</div>
<?php } ?>
Is this right? I am doing something wrong? I will check the catagories but I think they are under General!
Seb
Just checking and they are all in General. Is this correct 🙂
Seb
StaticEez posts should be in any category….. That’s part of how it works, and why it breaks…..
sebgate20 – can you post the text of your index.php? I’ll take a look at it when I get home, you’ve got the right idea, but you wraped it around the content instead of the meta info. If you can post your index.php (not here, just save it as a .txt file, then let me know) I’ll take a look at it and recommend the changes to get it working right.
TG
I have emailed you the index.php as both .php and .txt to the email address on your website. Mine is spayne (at) sebpayne.com if you want to contact me directly.
Seb
Got it, made some changes, and sent it back to you.
TG
It didn’t come through on my email programme properly. Could you email it is an attachment?
Seb