Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: how to retrieve the content of a specific page from each blog and display it in the blogs directory


gasparking
Participant

@gasparking

@nahummadrid

in fact, i don’t need to retrieve the blog description as it has only one field.
what i try is to get the content of a page (if possible with custom fields) from each blog.

I am able to retrieve the title of the post with ID=1 from each blog
here is what i’ve done so far

in the blogs-loop.php

global $blogs_template;
$post_id=1;
$info_post = get_blog_post($blogs_template->blog->blog_id,$post_id)->post_title;

and it gets the post ID=1

how to get a page (and not a post) with the name of the page ?
i try to use get_page_by_title(‘info’); but it doesn’t work

plz help

Skip to toolbar