• Is there a way to always include the ?p=n (example: exampleblog.com/index.php?p=55) as opposed to the standard exampleblog.com/ when a user hits the homepage?

    Showing only one post would be fine, basically, I’m looking to serve up the latest post, complete with the “index.php?p=n” in the URL when someone hits my blog. I’ve tried showing only a single post, but I’m still just getting /index.php . It makes a big difference in the targeting of adsense ads. With the proper ?p=n you get targeted ads, without it, you get blog ads.

Viewing 1 replies (of 1 total)
  • I’m interesting in something related to this, I think. I basically want my index page to be allowed to use some of the logic that you can use on single.php pages.

    Put differently, my index page will always show exactly one post, and I want to be able to use single_post_title() and other similar features outside The Loop on that page.

    I have information unique to individual posts scattered throughout the page (per-post stylesheets, per-post banner images, etc.) and I’m trying to figure out how to use some combination of custom fields and single-post queries to show it all.

    I guess worst case I could just expand the loop to begin before my <title> tag and end after the last per-post element I have…is there a better way?

Viewing 1 replies (of 1 total)
  • The topic ‘Always show p=n in URL’ is closed to new replies.