Wordpress - display a plugin as a static page?

Discussion in 'WordPress' started by Dangy, Nov 8, 2016.

  1. #1
    I'm wondering if this is even possible, and for the life of me I can't seem to get the do_action, or add_action to do a damn thing for me.


    Theme -> Function.php
    ^^^^^^^^^^^^^^^^^^^^
    function myFuncSocial(){
            include('plugins/social-networks-auto-poster-facebook-twitter-g/social.php');   
    }
    
    add_action('sopost','MyFuncSocial');
    Code (markup):

    Static Page: Theme -> page-template-folder -> social-poster.php

    <?
    get_header();
    do_action('myFuncSocial');
    get_footer();
    ?>
    Code (markup):
    Social.php location: Theme -> Plugin Folder - Socail.php

    but it doesn't seem to work at all.
     
    Dangy, Nov 8, 2016 IP