How to put the WordPress blog into theme
How to put the WordPress blog into theme
How to put the WordPress blog into theme
Allowing Comments on Posts
I figured out a solution. It works, not entirely sure if it’s best practice but I queried the posts first and it seems to show up. Here’s my code; <?php query_posts(‘showposts=2’); if (have_posts()) : while (have_posts()) : the_post(); ?> I then closed the if statement with; <?php endif; wp_reset_query(); ?>
There is a filter called the_content which you can use to do anything you like with the content. If you want to constrain this to certain pages, you must add an extra condition. It is not completely clear what you mean by ‘blogs page’. The condition for the blogs home page is is_home or else … Read more
Because the Blog Page isn’t an Page for WordPress, but a Listing, and Takes the “index.php” if there is no “home.php”. How to Solve: create a home.php and Insert the code, that you need in there.
You will get different class name in body tag while on different pages. You can use it and hide navigation. In case of yours – use below CSS .single-ecwd_event #tg-nav{display:none;}
You can do it by hooking admin_init action: First, you can create a option to select the page you create for your plugin. I suppose that the option will be save in wp_options table with name your_plugin_special_page. Remove editor support on that page with this action. add_action( ‘admin_init’, ‘your_plugin_hide_editor’ ); function your_plugin_hide_editor() { // Get … Read more
You could add a Custom Link to your Menu. Give it the title “Blog” and just enter your blog URL as the link. That would probably be the quickest solution.
Removing catagory for new blog pages
Delete you .htaccess file in root Reset your permalink structure If have access to the theme file make sure your blog title link refers to the_permalink() as destination. you might have open anchor tag from the logo which developer forgot to close.See page source or inspect it. Share the code in your loop.