Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bhaldie

    (@bhaldie)

    jut to be clear you are looking for an embed code to place mDocs post on any page?

    Thread Starter bcolmer

    (@bcolmer)

    Id like to embed a single doc on a post or a page. Here is a link:https://ccak12.flywheelsites.com/mdocs-posts/elementaryschoolhandbook/

    right now – it’s showing the title of the post – and the title of the document – which in this case happen to be the same. I am assuming this is a page template that is part of your plugin? I’d like to be able to either control the layout of this page, or just embed the document in my own post or page. Thank you!

    Plugin Author bhaldie

    (@bhaldie)

    yes i see the problem, currently there is nothing you can do to remove the double title, but I will add a feature that will allow you to hide the title.

    Thread Starter bcolmer

    (@bcolmer)

    Is that a page template? Could I make my own? I would still rather have a shortcode or something to embed my document into a page or a post if that is possible.

    Plugin Author bhaldie

    (@bhaldie)

    the best you could do for now is edit the php file:

    mdocs-post-page.php line 113 and 114:

    if($the_mdoc['post_status'] == 'private' && $read_private_posts == false) echo '<h2>'.str_replace('\\','',$the_mdoc['name']).'</h2>';
    		else { ?><h2><a href="<?php echo $the_mdoc_permalink; ?>" ><?php echo str_replace('\\','',$the_mdoc['name']); ?></a></h2><?php }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Embed a Document in a page or post?’ is closed to new replies.