How to have a clean theme with just one random post

  • Author
    Posts
  • #843512

    cricodcimo
    Member

    Hello, i wanna have a blog that looks like this website: http://whatthefuckshouldimakefordinner.com/
    The idea is to have just one post on the homepage and be able to click somewhere to make another random post appear at the same page.
    If possible, i’d like to be able to show just the title of the random post, and then, when the person clicks on it, it goes to the whole post.

    Is it possible to be done with wordpress?
    Could you help me? Its a project for my master, so i really need help to make it happen.

    Thanks!

    The blog I need help with is criticalrecipes.wordpress.com.

    #843618

    justpi
    Member

    You can create a static page in Pages > Add New and set your front to display that page in Settings > Reading. The content of the page can include a link to a random post. The HTML for such a link is this:
    <a href="BLOG URL HERE?random">VISIBLE TEXT HERE</a>

    #843621

    cricodcimo
    Member

    Thaaank you so much!! Im almost there. Now the doubt is how to make the visible text change everytime it conects to a new post. The visible text should be the title of the post, is it posible??

    #843622

    raincoaster
    Member

    No, that’s not possible in the link. The post itself will have the title in it, but people will have to click to see which post it is.

The topic ‘How to have a clean theme with just one random post’ is closed to new replies.