Tagged: multisite
-
AuthorPosts
-
November 13, 2013 at 3:45 am #187599
I am using get_blog_post as below to pull content from http://new.autumnpointe.com/apartments/pet-policy/ with the hopes of displaying the same content here (http://trellispointe.kenney.wpengine.com/apartments/pet-policy/) (hosted on WPengine) and on many other networked sites.
<?php $post_6 = get_blog_post( 7, 333 ); echo $post_6->post_title; ?>
The content will pull but I can’t figure out how to process the shortcodes to render properly.
I wish to use this method on several pages once I figure it out.
November 14, 2013 at 4:31 am #188203Hi bkheld!
I’m not sure if this is possible. Let me ask Dude and Kriesi.
Best regards,
IsmaelNovember 14, 2013 at 11:18 am #188295Hi!
Use following code to process the shortcodes
echo do_shortcode($post_6->post_content);
Regards,
PeterNovember 14, 2013 at 9:07 pm #188556Thanks Dude – this grabs and formats all of the content except the flexible full width header (can that be done) and the padding is a little off (looks like I might need to set the content holder size manually). Can I accomplish either of those items?
November 14, 2013 at 10:33 pm #188589Perhaps I am not putting this in the correct place?
currently in loop-page.php – perhaps it should be in loop-index.php, but where?
$pets = get_blog_post( 7, 333 ); $faq = get_blog_post( 7, 319 ); if ( is_page ('frequently-asked-questions')) echo do_shortcode($faq->post_content); if ( is_page ('pet-policy')) echo do_shortcode($pets->post_content);
- This reply was modified 11 years ago by bkheld.
November 15, 2013 at 12:09 pm #189146Hey!
1) No, the header probably won’t work because it requires an attachment id (=slideshow image) and I’m pretty sure that the multisite blogs do not share the same media gallery images and attachment ids. Fetching the attachments from a different database would require a major rewrite of the template builder framework.
2) Please elaborate on “the padding is a little off” – I’m not sure which padding you mean.
Best regards,
PeterNovember 16, 2013 at 1:03 am #189478I figured out the padding issue. the page acting wonky wasn’t in a layout container.
The header isn’t a deal breaker and I have an ok workaround in place. But theoretically, how would i go about fetching the attachment id, etc? the sites in this multisite all have replicated libraries so the same image and relative path, etc should all be the same.
November 16, 2013 at 9:31 am #189557Hi!
I recommend to hire someone from http://www.microlancer.com/ or here: http://kriesi.at/contact/customization if you really need this feature. I’m not sure what needs to be done – you first need to debug the code in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow.php and then you probably need to find a way to fetch the right image id based on the multisite blog id.
Regards,
Peter -
AuthorPosts
- The topic ‘Content pulled from other site on multisite will display, not process shortcodes’ is closed to new replies.