最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Is it possible to customize a wordpress post from outside dashboard(Something like site.compost-typepost?e=post_id)?

programmeradmin1浏览0评论

My question is -

  1. Is it possible to customize a wordpress post without using wp-admin dashboard?
  2. If so, how do I need to generate url for the post?

  3. How to submit the data which is edited through the form?

My question is -

  1. Is it possible to customize a wordpress post without using wp-admin dashboard?
  2. If so, how do I need to generate url for the post?

  3. How to submit the data which is edited through the form?

Share Improve this question edited Oct 29, 2019 at 16:41 Md Mahbub Bakth Ansary asked Oct 29, 2019 at 16:24 Md Mahbub Bakth AnsaryMd Mahbub Bakth Ansary 113 bronze badges 2
  • Yes! Put a look here: developer.wordpress/reference/functions/wp_update_post and here: developer.wordpress/reference/functions/update_post_meta – Sam Commented Oct 29, 2019 at 16:35
  • To reply since changing your title: You have several ways. You can create a file and include it with a init add_action in your functions.php.. after, you do some codes in your file for activate it when you get "e=" and you have good authentification. You can create a page in your admin, create a page template and make some codes for accessibility, etc... – Sam Commented Oct 29, 2019 at 16:59
Add a comment  | 

1 Answer 1

Reset to default 0

Is it possible to customize a wordpress post without using wp-admin dashboard?

Not the way you're wanting it, to answer this more thoroughly:

Is it possible to customize a wordpress post from outside dashboard(Something like site/post-type/post/?e=post_id)?

Not out of the box, there is no frontend post editing UI in WordPress. You would have to build it yourself ( and many people do )

Can I Build One?

Yes! But you would need to implement the UI yourself, and you would need to process that data and pass it to wp_insert_post, and handle the security.

You could use the REST API, and let that handle the security, simplifying things. That's what the block editor does.

If so, how do I need to generate url for the post?

As mentioned above, there is no frontend post editing UI out of the box

How to submit the data which is edited through the form?

You'd have to construct the form and the handler for it yourself. wp_insert_post and wp_update_post are the critical functions you need to research, otherwise it's just like any other form handling.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论