All Questions
2 questions
14
votes
4
answers
52k
views
Get page content using slug
I'm trying to get page content when I only know the slug string.
Is there a function for this, or an easy way to do this or is this a case of doing it via SQL?
Thanks very much
0
votes
1
answer
156
views
Toolbar Hidden in a Virtual Page
I am trying to create a virtual page, but my admin toolbar is not showing up.
This is how I am creating the virtual page:
functions.php
add_action('init', function()
{
add_rewrite_rule('...