• Resolved sumitrathore18g

    (@sumitrathore18g)


    Hi,

    I have a plugin to use in my wordpress page. Before that i need some php code to get some data and provide that data to the plugin. I am using this plugin for using php in wordpress. Now the problem is i don’t know how to use [plugin’s shortcode] in this plugin. Actually this is what i want. I am calling a page by passing a parameter to it. In that page i use [view_repo] a shortcode for a php code.
    In that shortcode i want to get that parameter using $_REQUEST[] and pass that to another wordpress plugin . Is there anyway i can achieve this?

    Thanks

    http://wordpress.org/plugins/shortcode-exec-php/

Viewing 1 replies (of 1 total)
  • Thread Starter sumitrathore18g

    (@sumitrathore18g)

    Hi,

    Problem solved. This is how i solved it. This is my [view_repo]

    $name= $_REQUEST['name_file'];
    echo "$name";

    And on that wordpress page i use this

    [wp-pdf-view
        swf="http://127.0.0.1/wordpress/upload/[view_repo].swf"
        width="700"
        height="900"
    
    /]

    And everything works perfect. This by far the most useful wordpress plugin for me. Thanks to the creator.

Viewing 1 replies (of 1 total)

The topic ‘How can i use plugin's shortcode in this plugin?’ is closed to new replies.