Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I found this script Wordpress Media Manager 3.5 - default link to

and it works fine for me. But my problem is, that I have a custom wp_editor on the front end where I want it to work, but I can't find a way to activate it on this site..

Here is the code:

add_action( 'load-post.php', 'wpse8170_media_popup_init' );
add_action( 'load-post-new.php', 'wpse8170_media_popup_init' );

which works fine in the wp backend media manager, but not in my custom wp_editor.

The URL to the wp_editor is: http://localhost/website.com/visitenkarten-setup/

And the page id is 360..

Do you have any idea how I could use the add_action on this page? Thank you!

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

In your theme's functions.php file, or the like:

add_action( 'your-custom-action', 'wpse8170_media_popup_init' );

In the page template used for the page in question:

do_action( 'your-custom-action' );
share|improve this answer
    
thank you very much! :) –  Sebsemillia Mar 20 '13 at 15:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.