get_page_by_path not working with multisite
-
Hi, I’m using get_page_by_path in a function to retrieve the thumbnail of a post from the URL of the page (got from external source).
It worked well but when I switched to multisite installation the function doesn’t work anymore.
This$url = "page-url"; (without hostname nor backslash) $page = get_page_by_path($url);
returns nothing.
I checked and $get_current_blog_id returns the right number (1).
Even url_to_postid() doesn’t work.
Do I have to call some other functions to get it work with multisite?
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_page_by_path not working with multisite’ is closed to new replies.