How to use?
-
Hi,
I have to say, your plugin is actually great… And I wonder if the poor reviews you receive are for users who either cannot code, so have no idea how to implement this… or perhaps they are missing something (as I may have)…
But I feel as if my use might not be how you intended, and I am wondering if it’s to do with my local environment / theme. I have noted in your documentation you quote “FPE” which I assume is the “Full Page Editor” pre-Gutenberg? Therefore, it may be down to template support.
I am using a child theme based on PicoStrap with Polylang for multi-site purposes.
Below is the code I am using to include your page (added to header.php) on a dev environment on my local machine. is this how you are expecting users to include the menu in their own pages?
I assume when you mentioned FPE, you were expecting users to be able to modify the header of their page…? I actually can’t get that to work but do remember it some time ago. perhaps this is the part I have missed?
My code below anyway for your reference (using paceholders)..
$post_obj = get_page_by_path( "slug-of-post", OBJECT, array( 'page' ) ); $content = $post_obj->post_content; $content = apply_filters('the_content', $content); //some other code here to make it pretty if ($post_obj->post_status == 'private') { // I chose private post type for SEO reasons, our custom SEO plugin ignores this type // page is published return $content; } else { // Fallback Menu Code ?>
P.S. I did have to make a few tiny modifications to your code to alleviate warnings. Happy to share the info if you wish, but enabling debug mode, you may encounter them.. Or again, it may be my use case!
- The topic ‘How to use?’ is closed to new replies.