WordPress display page information rather than post

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(); ?>

How to add add blank non-editable wp page like default blog for use with plugin

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

Blog post Links leading to home page [closed]

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.