Problem with quotes

Maybe this are regional settings involved here. I don’t think that issue is showing somewhere else. Maybe they are copying their text from somewhere else.

How to show category based post in home page?

You can do it using the following loop: <?php $cat_477 = new WP_Query(); $cat_477->query(‘cat=477&showposts=4’); while($cat_477->have_posts()) : $cat_477->the_post(); ?> <h3><a href=”https://wordpress.stackexchange.com/questions/77679/<?php the_permalink(); ?>”><?php the_title(); ?></a></h3> <p><?php echo get_the_excerpt(); ?></p> <?php endwhile; ?> The number 477 is the ID of one category. The variable $cat_477 is where we save the MySQL query for one category (477 in … Read more

Pagination for normal (standard) posts on a page with a custom loop?

get_pagination_links is looking at $wp_query, whereas you want pagination for your query object named $loop. So instead, use paginate_links Something similar to this code, which is based on get_pagination_links, alebit with wp-query swapped out for your loop query object: $endsize = $midsize = 1; $type=”plain”; $loop->query_vars[‘paged’] > 1 ? $current = $loop->query_vars[‘paged’] : $current = … Read more

Using Posts Like a Page

Use pages for pages and posts for posts. Both post types are specialized for their use case. They use different permalink settings and list tables. The number of pages is not limited. I have seen site with more than 50.000 pages running smooth. In earlier days, the permalink parsing for pages was slow under some … Read more

How to make posts being uncategorized

All posts have to be associated with at least one category. It might be possible to bypass this requirement but probably doesn’t worth the effort. If you really need to be able to have content without categories then you should create and use a custom post type, with which you can create and use custom … Read more

Making posts permalinks consistent numbers

I don’t really have the time or will to write and debug the code to make this work, but I can point you down a path to how you might make this work. A word of warning: it’s certainly not simple. You have to save the current number somewhere so you can retrieve and increment … Read more

Create a frontpage.php and static page template

When you make a page the page for posts, it is no longer a page in the conventional sense, so it won’t load your custom page template. See the Template Hierarchy to learn how WordPress selects a template based on the requested page. This behavior also extends to Conditional Tags. is_page() will return false on … Read more