How to show WP admin edit page within template pagepost?

So I am wanting to show the wp-adminpost.php?post=999&action=editInside my custom template of the single.php and p

So I am wanting to show the wp-admin/post.php?post=999&action=edit Inside my custom template of the single.php and page.php.

So I understand that I can do it using an iFrame by basically get_the_ID() of the current page and passing the URL of wp-admin/post.php?post=999&action=edit in the src of the iframe...

for example:

<iframe seamless="seamless" scrolling="yes" src="<?= get_bloginfo(url); ?>/wp-admin/post.php?post=<?= get_the_ID(); ?>&amp;action=edit" allowfullscreen="" frameborder="0"></iframe>

However, I do not want to completely access the wp-admin from an iframe, causing a cycle of a "looking into mirror-to-mirror effect" with iframes-to-iframes.

I've also thought that if I used an Iframe, then I would have to write a jquery script to capture all <a> and turn them into an onclick function to send the link to the:

window.top.location.href = url;.

If there is a better way to access the edit page screen from the template, please let me know...

My goal is to make the wordpress admin completely show on frontend of site

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745526517a4631492.html

相关推荐

  • How to show WP admin edit page within template pagepost?

    So I am wanting to show the wp-adminpost.php?post=999&action=editInside my custom template of the single.php and p

    4小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信