Limit post view and management to custom user meta information

You have to filter user_has_cap and compare the user meta fields. The following code is based on this answer and not tested. add_filter( ‘user_has_cap’, ‘wpse_99393_filter_cap’, 10, 3 ); /** * Allow editing others posts only for editors from the same school. * Administrators can still edit those posts. * * @wp-hook user_has_cap * @param array … Read more

Add category description to list of category with taxonomy image

If I understand you correctly, you might try to replace echo ‘<div class=”grid col-780″><h4>In this issue</h4><p>[CATEGORY DESCRIPTION SHOULD GO HERE]</p></div>’; with: echo ‘<div class=”grid col-780″><h4>In this issue</h4><p>’. $term->description. ‘</p></div>’; i.e. $term->description to get the description part.

Retrieve page content and pass to PHP?

the_content does echo the content. That is stated in the Codex– “Displays the contents of the current post”, emphasis mine. Use get_the_content instead, to return a string that you can manipulate. Be aware that get_the_content does not run all of the same filter as the_content. Again from the Codex: If you use plugins that filter … Read more