Tag Info

New answers tagged

0

I had this problem when running multi-site and the user was only an admin of the site. I as super-admin could put whatever html attributes I wanted. I am sure the long term solution is not to raise their privileges, but it could be a place to start trouble shooting. @jochem, I have gone down the route of making the tinymce changes, but that does not seem ...


1

See Wordpress Template Hierarchy and figure out which page you've to modify. From this figure, it's easy to see that if you want to modify your homepage, you have to modify frong-page.php. It it doesn't exist, check if a custom page template is used to serve the home page and edit that page template. If front-page.php doesn't exist and you are not using ...


1

Use a PHP function to do this: https://php.net/strip_tags example: echo strip_tags("<div>my text</div>");


0

If it's only <div></div> I would do a preg_replace, like this: $string = preg_replace ( '|</?[^>]*>|i', '', $string ); This removes only the tags, not the text between the Tags. I understood this is what you wanted.


-1

I know it's late but it might be helpful for someone. Every blog on wordpress supports feeds so to sync your blog posts on any site you just need to fetch the feeds from the same url of your blog like www.yourblogname.wordpress.com/feed/. This will return RSS feeds which can be used anyway you want. There are lot of jQuery plugins to read feeds like ...



Top 50 recent answers are included