How to filter post content and force every link () made in blocks to return urldecode() with readable value?
How to filter post content and force every link () made in blocks to return urldecode() with readable value?
Missing content in Pages only
Control Content On Non-Blog Pages
Changing fonts and stripping tags can be done with a mySQL query. You’ll just need to figure out the right regexes to search and replace. For everything else, it sounds like you would be better off updating the single.php template. Social links, ad codes, all those sorts of things are better managed in a single … Read more
My suggestion would be to use a custom page template. In your functions file you require a php file that contains the custom template. require_once ‘buy_page_template.php’; and that file declares itself to be a template by containing some commented out text: <?php /* Template Name: Buy Page */ Once you’ve uploaded and required that file, … Read more
How to filter post content and force every link () made in blocks to return urldecode() with readable value?
Error when adding excerpt to the content through functions.php
Basically you want custom posts in WordPress that will be just pointers to external data? If you don’t want full import then: Store some kind of unique property identifier (that makes sense for your external data) as meta field or guid in custom post type. Make wrapper function that will take ID of your custom … Read more
<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more
Sounds like your news-box isn’t using clean methods for pulling posts. I’m guessing that you are not using the get_posts() function. You’re probably creating a new WP_Query object from scratch? Try using get_posts(), as it will take care of keeping the original page query clean for you.
Not tested, but I imagine add_filter(‘the_content’, ‘wp_kses_post’); will scrub it good. Might need playing with priority.