Tag Info

Hot answers tagged

2

I depends on your theme - they can be used for many things, but generally they are displaying in the list of the post, in the post itself (usually on the top of it). As well they are usually visible when sharing the link (for example in FB). But however, this is really pretty general question, you would have better to use google first (and maybe looking to ...


1

Unless I am completely misunderstanding what you are trying to do, there is no need to move your site into a sub-folder. The easiest way to do what you want is to simply create your static page in normal html just as you want it to appear. Then add the following code to the very top of your page... <?php /* Template Name: Front Page */ ?> Then ...


1

You can make use of properties on elements. Have a look at the following concept and see if you can use it. You basically hide all "featured" images. Add a general class to the post titles which you want to use to show/hide images. Add a property to the post title element which holds the id of the image you want to show. Generated MarkUp: <img ...


1

As stated in comments Most probably your posts per page setting for your site is less than 10 One have to remember, get_posts uses WP_Query. Any new instance of WP_Query and the main query (which also uses WP_Query) uses the value set for Blog pages show at most as default for the posts_per_page parameter when this parameter is not explicitly set by ...


1

To accomplish this, you will need to know which is the last post on the page. There are a couple ways to achieve this, but I think the easiest way is to use pure php, the function end(). You are going to use this to get the last post in the loop. Once you have the last post in the loop, you can simply just compare the last post's ID with the current post ...



Only top voted, non community-wiki answers of a minimum length are eligible