Jump to content
Sign in to follow this  
rjsma

Wordpress | Inserir videos no custom post type

Recommended Posts

rjsma

Boas,

Bem...eu criei um custom post type Works, e gostava de inserir a shortcode [embed] para inserir um vídeo. Mas parece ( pelo o que li ) que as Shortcodes são descativadas nos custom post type.

O objectivo era, juntamente com a funcionalidade do post formats tornar o video como featured deste tipo de post.

A questão é , se é possível activar as Shortcodes para este efeito?

Cumprimentos ;)

Share this post


Link to post
Share on other sites
emanuelx

quando crias um custom post type, podes definir se queres usar o editor tinymce, se esse codigo for em plugin acho que é só usares, ou então recebes o conteudo numa variavél e depois aplicas um filtro.

apply_filters('the_content', get_the_content);
$panels = explode("[newpage]", get_the_content());

Edited by emanuelx

com calma e sem stresses

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.