alesandro85
Forum Replies Created
-
Same problem with me. Would be great if someone knows how get the
<?php the_ID(); ?>
Code working.In another post someone told that the code have to be implemented “in the loop” whatever that means ?? .
I would very appreciate if so know the solution for that issue.
Regards,
AlexForum: Fixing WordPress
In reply to: Front End Delete Post with Custom Post Type@ Clicknathan, works well ?? Thank you for the explanation.
I tried your trick but haven’t had the same success like you. Posts are not automatically enabled then.
Thank you for your quick reply!
Forum: Fixing WordPress
In reply to: Front End Delete Post with Custom Post TypeHy Clicknathan,
For a newbee like me one question regarding you code above:
Where do I have to put that code into? functions.php?
Thank you.
Regards,
AlexThanks for the quick reply Zhang.
When my users create a post by themselves via Gravity Forms I want to give them post an expiration date. In my case I set the Post Expirator not to a certain date but to a certain duration after publishing the post (which goes automatically). So, the duration is set right – good with that – but theres no way for me to enable the Post Expirator in a new created post automatically.
So if I would have a custom field to enable the Post Expirator in my form everything would work great. For example the Content Scheduler have a custom field called “_cs-enable-schedule” which I can predefine as “enabled” so for a new post (custom post type) it’s automatically enabled.
For the Content Scheduler (which I would prefer because of the notification ability) it’s pretty much the same problem:
Here I can enable the Content Scheduler in the post via the custom field (see above). but can not set a duration from creating the post – only a date. if I give the custom field _cs-expire-date the value “+ 365 day” the result is the value “INVALID” in the database.
You got my dilemma ?? ?
Handoko Zhang, do you maybe know a a way how to enable post expirator in a post via a custom field?
Auto Prune Posts is not my first choice because i am not able to manage my custom post types with it.
Handoko Zhang weisst du zuf?llig wie man bei bei dem Post Expirator über ein custom field das plugin in einem post einschaltet (enabled)?
i would have the same question as 3×4 has. What do I have to fill into the custom field called “_cs-expire-date” when I have chosen into the settings that a post should be deleted/drafted after 365 days ?
Thank you.
Regards,
AlexHello Bradvin,
Thank you for your help. I solved it with another field but tried it out also with your code. Your code just give out numbers and not the words chosen.
ciao Alex