Viewing 4 replies - 1 through 4 (of 4 total)
  • @pajczur Been awhile, but I think you need to include a div tag in your my_custom_endpoint_content() as a wrapper, to position the content correctly.

    Thread Starter pajczur

    (@pajczur)

    Great thanks for your reply.
    But unfortunately it didn’t helped. Nothing changed.
    I make something like that:
    echo '<div><p>Hello World!</p></div>';

    Is it OK?

    But I thinks maybe it has something to do with registering the endpoint. There is line like that:
    add_rewrite_endpoint( 'my-custom-endpoint', EP_ROOT | EP_PAGES );

    Shouldn’t it be instead EP_PAGES something else? But what?

    • This reply was modified 5 years, 12 months ago by pajczur.
    Thread Starter pajczur

    (@pajczur)

    I also tried to remove page “my-custom-endpoint” but then when I click on my new tab it takes me to 404 error page.
    But As I told in point 2) I don’t want it takes me to separate page. I just want to open tab, like any other tabs: Dashboard, Orders, Downloads, Account details etc.

    Thread Starter pajczur

    (@pajczur)

    OK, I’ve found out that I forgot to click “Save changes” in wordpress->settings->permalinks.
    Now everything works fine

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding tab to account page – content issue’ is closed to new replies.