Add end mark at the end of every article

The end of the_content() is a </p> tag. It sounds like you want to include your end mark before that last </p> tag. If so, you need a function that filters the_content(). Something like: function yang_end_mark( $content ) { $content = substr_replace($content, ‘<span>&#128282;</span></p>’, strrpos($content, ‘</p>’), strlen(‘</p>’)); return $content; } add_filter( ‘the_content’, ‘yang_end_mark’, 25 ) ;

use system script advertising in wordpress multisite

I have write : <?php $blog_id = get_current_blog_id(); ?> <?php if( 1 == $blog_id ); ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php elseif( 2 == $blog_id ): ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php else: ?> Default script <?php endif; ?> It correct !?

How to create “page” used for generating PDF? [closed]

Since it’s a standalone script, you can just link to it directly and WordPress will be none the wiser. Just make sure you get the link right – if it’s in your theme, it will be something like: http://example.com/wp-content/themes/my-theme/generate-pdf.php Don’t hardcode the URL though, use the available template functions: <a href=”https://wordpress.stackexchange.com/questions/199196/<?php bloginfo(“template_url’ ) ?>/generate-pdf.php”>Generate!</a> Of … Read more