Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to set up single portfolio page as homepage

Discussion in 'Troubleshooting & How-To's' started by pkutaj, Nov 20, 2016.

  1. pkutaj

    New Member

    Joined:
    Nov 20, 2016
    Messages:
    1
    Likes Received:
    0
    Hi all !

    I would like to have a single portfolio page set up as wordpress homepage at my domain.

    To achieve this, what I did is to redirect the homepage directly to where the single portfolio resides.

    So I added this piece of code to Home Page Templage (homepage.php)


    $location = get_site_url() . "/x/x";

    wp_redirect( $location, 301 );

    exit;


    However, what I need is to hide now the URL in the address bar to be /x/x. Is this doable? Or can I set up a single portfolio page as homepage in some other way?

    I hope that what I write makes sense...

    and Thank you!
     
    #1
  2. Luke Mcc

    New Member

    Joined:
    Nov 28, 2016
    Messages:
    10
    Likes Received:
    1
    #2

Share This Page

Web Hosting