• Resolved craybac

    (@craybac)


    i have an “a href” in my page which is link to portfolio menu. how can i call the portfolio menu?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Links need to be formatted like this:

    <a href="https://somesite.com/portfolio">Click here text</a>

    You would replace the https://somesite.com/portfolio with the actual URL to the portfolio page on your site.

    Also, you can replace Click here text with whatever text you want to be clickable like this.

    If that’s not what you’re looking for post a link to your site so I can see what you’re trying to do.

    Thread Starter craybac

    (@craybac)

    Sorry for the incomplete details, what i’m looking is a php command in wordpress like <?php the_permalink(); ? > where i can use to call the a href.

    click here …. I want to change the “portfolio.ph” like <?php the_permalink(); ? >, i just want to call the portfolio menu in page not the post.

    Thanks for the help.

    Do you want something like this?
    <a href="<?php echo get_permalink( 268 ); ?>">My link to a post or page</a>
    Where 268 is the post id.

    Thread Starter craybac

    (@craybac)

    Yes this is what i want but for the page menu. Should i get the ID in get shortlink?

    If you replace 268 with the page ID of your portfolio page you should generate a link to the correct place. If you edit the page you want to link to, you will see in your browser’s address bar something like this https://somesite.com/wp-admin/post.php?post=268&action=edit

    The number after post= is what you should put in between the parenthesis in get_permalink().

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to call the link in "a href" in wordpress’ is closed to new replies.