Blog Posts not showing title
Remove the <!– –> in <!–<h1><?php the_title(); ?></h1>–> these are html comments so it won’t get displayed.
Remove the <!– –> in <!–<h1><?php the_title(); ?></h1>–> these are html comments so it won’t get displayed.
You say you copied the entire content of index.php into home.php but I assume you have made some changes? Because if not the pages looks identical so maybe it is loading, but just the same? Now are you having posts or pages you want to display on your front page? Because for the posts and … Read more
Use the WordPress Reading settings for your posts page named blog and create a static front-page.php file for your front page in your theme.
Choose ‘your latest posts’ as to what your homepage should show. This will then show your latest posts on the homepage (aka your blog). Edit: looks like you have this working now!
I would go with option 4: A simple SQL statement (UPDATE {$wpdb->posts} SET post_type=”testimonial” WHERE post_type=”post” AND post_status=”publish” or something like that) to move the current “blog posts” testimonials to their own custom post type. You could also use a plugin to do this. Then use the blog (the “post” post type) as you normally … Read more
Refer to the Template Hierarchy in Codex. If you have assigned a static front page, the template that will take priority for that page is front-page.php, and the template for the posts (blog) page is home.php.
Use the following for with Custom Text with Link. The above given code by @TheDeadMedic works only with text but no link. Code With Link and Custom Text like this: <?php previous_post_link( ‘%link’,’Previous Post’ ) ?> <?php next_post_link( ‘%link’,’Next Post’ ) ?> Hope this helps.
You can do this way function block_access() { if (is_page (blog) && !is_user_logged_in ()) { $loginUrl = home_url(‘/login-page/’); wp_redirect($loginUrl); exit(); } } add_action( ‘template_redirect’, ‘block_access’ );
The answer appears to be that it is possible: http://codex.wordpress.org/Creating_a_Static_Front_Page Configuration of front-page.php If it exists, the front-page.php template file is used on the site’s front page regardless of whether ‘Settings > Reading ->Front page displays’ is set to “A static page” or “Your latest posts,” the Theme will need to account for both options, … Read more
I am having trouble with article formatting when exporting/importing articles from the production to the development environments