Notifications Bar on home page only

Using the very example from the Codex in the Settings API section. Put it in the theme’s functions.php: add_action(‘admin_init’, ‘eg_settings_api_init’); function eg_settings_api_init() { add_settings_section( ‘eg_setting_section’, ‘Example settings section in reading’, ‘eg_setting_section_callback_function’, ‘reading’ ); add_settings_field( ‘eg_setting_name’, ‘Example setting Name’, ‘eg_setting_callback_function’, ‘reading’, ‘eg_setting_section’ ); register_setting(‘reading’,’eg_setting_name’); } function eg_setting_section_callback_function() { echo ‘<p>Intro text for our settings section</p>’; } … Read more

How do i retrive a post from a custom post type

I’m not sure that I completely understand your question, but if you’re just looking for an array of movies that are of the type distributie, based on the ID of the current Loop object, this will do it: $args = array( ‘post_type’ => ‘movies’, ‘meta_key’ => ‘distributie’, ‘meta_value’ => get_the_ID() ) $get_distributie_movies = get_posts( $args … Read more

my custom_post_type does not appear in my web page…how?

It sounds like you want to hook into pre_get_posts for the blog index. The following should only effect the blog index. That is what is_home() is for. Of course, you can edit the function to alter that behavior if you want. function add_post_type_to_index_wpse_88317($qry) { if (is_home()) { $qry->set(‘post_type’,array(‘post’,’movies_cp’)); // plus any others you want. } … Read more

How to make post stick to its own div

Without seeing the code that gets the actual content of the boxes it’s impossible to know for sure. But I guess your problem is that the theme code sorts the posts by modified_date. If you find the line in the code (most likely it will contain get_posts() or WP_Query) you just have to remove the … Read more

Next and Previous buttons are not showing on home page for post

like @Mayeennul said you have your templates mixed up. Generally speaking the home page contains a list of excerpts the_excerpt() with links to individual blog posts that are displayed using single.php. If you want a single blog post as your home page you could copy single.php and rename it to index.php or front-page.php.