• I want to show a post in a page (other than index.php) ..but just thast post
    like this https://olivieri.tx.com.ru/music2.php?p=36
    how do i do so when some enters in music2.php it shows the post # 36.. without puttin it in the URL (?p=36)
    like declaring p=36 a constant for that page.. or something
    can some body help me?
    thanx!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would create a static page with just that information on it.
    Have a look here for Ezstatic:
    https://www.asymptomatic.net/wp-hacks

    Thread Starter Gianko

    (@gianko)

    nope that is not the problem…
    i dont want stactic info in my wp-template…
    I want to show just a specific post in a stactic page diferent that my index page where I have my blog…
    For example.. in index.php I have my blog with all the post but the ones in the category 2
    in the category 2 I have the post number 36
    I want to show the post 36 in music2.php… I can do that by sending the variable in the URL like this: https://olivieri.tx.com.ru/music2.php?p=36
    what I want is to have that result without the ?p=36 in the URL… so when someone enters in
    https://olivieri.tx.com.ru/music2.php they see the post
    click them to see the diferences.
    sorry, my english is not so good ??

    kordwarshuis

    (@kordwarshuis)

    Hi Gianko,
    Did you already find out how to do this? I want exactly the same, searched the forums, but cannot find an answer to my problem.
    regards, Kor

    kordwarshuis

    (@kordwarshuis)

    Hi Gianko,
    What I did is this:
    add
    <?php $p=36; ?>
    at the top of your document, above
    <?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    ?>
    I think this is what you are looking for.
    cheers, Kor

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘show a specific post on a page’ is closed to new replies.