Hi guys. I need your help with a small line of code.
What i am trying to achieve is a "conditional" output for dashboard.write.php form.
If a published blog post is edited or if a draft blog post is edited -> do this - > else -> do that.
Basically i want to output something in submission form if the form is opened for a new blog post if the form is "opened" for editing an existing blog post or an existing draft, do something different.
What i achieved so far is this
This works great if the blog post edited is published but does not work if the blog post edited is a draft.
Any tips how to fine-tune the above code to make it work also for editing a draft ?
Thanks !
What i am trying to achieve is a "conditional" output for dashboard.write.php form.
If a published blog post is edited or if a draft blog post is edited -> do this - > else -> do that.
Basically i want to output something in submission form if the form is opened for a new blog post if the form is "opened" for editing an existing blog post or an existing draft, do something different.
What i achieved so far is this
<?php if ($isEdit) { ?>
do this for editing
<?php } else { ?>
do this for new post
<?php } ?>
This works great if the blog post edited is published but does not work if the blog post edited is a draft.
Any tips how to fine-tune the above code to make it work also for editing a draft ?
Thanks !