Jump to content
Dragos

Scoaterea ghilimelelor speciale din WordPress

Recommended Posts

  • Moderators

M-am confruntat mult cu problema ghilimelelor speciale din WordPress. Când inseram un cod javascript în posturi, WordPress îmi convertea automat ghilimelele simple în ghilimele speciale ?i astfel îmi murea scriptul. Astfel, am apelat la scriptul de mai jos pentru a nu mai avea probleme.

Tot ce trebuie s? face?i este s? copia?i scriptul de mai jos într-un fi?ier PHP pe care îl salva?i în /wp-content/plugins/, dup? care îl activa?i din panoul de administrare din sec?iunea Plugins (Module).


<?php
/*
Plugin Name: Scoaterea ghilimelelor speciale
Plugin URI:
Description: Acest plugin va scoate toate ghilimelele speciale din articolele tale, din comentarii si din rezumate (excerpt)
Version: 0.1
Author: Katja Stokley
Author URI:
*/
remove_filter('the_content', 'wptexturize');
remove_filter('comment_text', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
?>

  • Upvote 1
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...