WordPress.org

Support

Support » Plugins and Hacks » Network Shared Posts » Can it work for a link category

Can it work for a link category

  • Hi

    i was wondering if I could make this work for links I have in a link-category??

    I have a multisite set up which has the main site and a second site. On my main site I have a list of links with a category of Resources, I am using wp_list_bookmarks('title_li=&categorize=0&category=2'); to display them and was wondering if I could use this plugin to display them on the second site, Is this possible???

    http://wordpress.org/extend/plugins/network-shared-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you ever figure this out? I’m looking for the same thing.

    Hi
    When I was building this site I was doing lots of research on lots of different things I wanted it to do and so I tried lots of stuff but unfortunately didn’t keep notes on what I did.

    Looking at the code I used I don’t think I used this plugin I used this bit of code:

    <?php get_current_blog_id(); 
    
    	 if ($blog_id ==1) {
    		 wp_list_bookmarks('title_li=&categorize=0&category=2');
    	 }else{
    		 switch_to_blog(1);
    		wp_list_bookmarks('title_li=&categorize=0&category=2');
    		restore_current_blog();
    	 }?>

    I added this to my template for the page I wanted. As far as I can remember that’s all I did to get it to work. Maybe you could try it, of course you may need to adjust the blog ID’s (my main one was blog id 1) and the category to display.

    In my case it was a resources page which showed a list of links and they were added to the main blog then displayed on two sites.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can it work for a link category’ is closed to new replies.
Skip to toolbar