WordPress.org

Ready to get started?Download WordPress

Forums

Network Shared Posts
Can it work for a link category (3 posts)

  1. jdweb
    Member
    Posted 1 year ago #

    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/

  2. fuzzie
    Member
    Posted 1 year ago #

    Did you ever figure this out? I'm looking for the same thing.

  3. jdweb
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.