admin管理员组文章数量:1431427
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(); ?>&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
本文标签: How to show WP admin edit page within template pagepost
版权声明:本文标题:How to show WP admin edit page within template pagepost? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745526517a2661858.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论