1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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