No Authors for custom post type

You need to include the post type in the pre_get_post filter: (Not sure about global $user_ID;, just reproduce that part of your code) function content_for_current_author($query) { if($query->is_admin) { global $user_ID; $query->set(‘author’, $user_ID); $query->set( ‘post_type’, array(‘acf’, ‘another-custom-pot’, ‘page’, ‘post’) ); } return $query; } add_filter(‘pre_get_posts’, ‘content_for_current_author’); Details in WP Query documentation for Type Parameter Also, your … Read more

How to map my php files as the files for pages

Use page templates, an overview can be found here: http://codex.wordpress.org/Page_Templates Edit for those afraid of dying links: A page template file should be placed in the theme folder, with any name you like. In its header, it should have <?php /* * Template Name: My Custom Page * Description: A Page Template with a darker … Read more

Use page.php for front page

if it is “a very complex theme,” then there’s probably some hook into template_redirect malfunctioning. as @TomJNowell mentioned, using home.php or front-page.php should allow you to override page.php, but that’s not always preferred (I rarely use them myself), and will not necessarily fix the problem. you don’t need to assign a blog page in order … Read more

Shortcodes (with a space) added to php Sample

there isn’t an “space” in the Shortcode-Name. What you have, is an shortcode called “customcont”, that is providing an Parameter called “form”. So this is, how it should work: function example_shortcode( $atts = array(), $content=”” ) { extract( shortcode_atts( array ( ‘form’ => 0, ), $atts ) ); return ‘FORM TO DISPLAY IS #’.$form; } … Read more

apply_filters() function

If the characters are html entities like &nbsp &lt or &#60 then use php’s default html_entity_decode() function to get the content in proper text format.