Delete all Tag Links from Posts

1) For existing post content, you can add a filter to the_content to remove them from the output before they are seen by a user: function remove_tag_links( $content ) { return preg_replace( ‘#<a [^>]*\bhref=\\\?”[^”]+(?=/tag/)[^”]+\\\?”[^>]*>(.+?)</a>#si’, ‘$1’, $content ); } add_filter( ‘the_content’, ‘remove_tag_links’ ); 2) For new / updating content, you can add the same filter to … Read more

How to repeat a loop after 4 posts [duplicate]

Assuming that you’re only using the counter to decide what style to use, the easiest way to achieve what you want would be to reset the $count variable once it gets to 4. <?php elseif ($count == 4) : ?> <div>Styled post 4</div> <?php $count = 0; ?> <?php else : ?>

displaying the categories post

That happens because the_content() contains already an echo. PHP tries to create the string before it sends it to the echo command. While the string is evaluated the content will be printed already. Then echo gets what was not yet printed: the li tags. So the simple fix is: echo ‘<li>’; the_content(); echo ‘</li>’;

Have posts included on a page that share same category

(…) are pages in fact posts? You won’t think what every thing is a post type in WordPress: Posts, Pages, Links, Nav Menu items… The same goes for Terms, Categories and other things, which are built in Taxonomies. You can take a look at it with adding the following very late in your theme (the … Read more

Approve modified posts

This exact functionality is not available in wordpress core. You may want to completely block them from modifying the published posts. See this capability- http://codex.wordpress.org/Roles_and_Capabilities#edit_published_posts Otherwise you’ll need a plugin

posts going to 2 pages/categories only show up in 1

First thing : you should not use category ids directly. Use slugs instead : it’s easier to maintain. <?php query_posts(‘category_name=portfolio’); ?> Second thing : why did you put a query parameter in the_post ? This function does not accept any parameter (see the Codex). Third thing : the call to query_posts(‘cat=-4’); will show all posts … Read more