Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: General Discussions > Importing Wordpress data into Sitefinity

Importing Wordpress data into Sitefinity

  • Anthony avatar

    Posted on Jan 25, 2012 (permalink)

    Has anyone successfully imported existing wordpress content into Sitefinity? We are currently working on feasibility on making the transition from wordpress to sitefinity.

    Reply

  • Stanislav Velikov Stanislav Velikov admin's avatar

    Posted on Jan 30, 2012 (permalink)

    Hello,

     I haven`t migrated wordpress site to Sitefinity, but the process of migration is to move the design related files of wordpress to Sitefinity as master pages and themes as in this documentation.
    The automated way to get content from mysql database and publish it as Sitefinity content is using Sitefinity API.

    Regards,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Anthony avatar

    Posted on Feb 7, 2012 (permalink)

    We have managed to import the data into Sitefinity from Wordpress, but the issues we still face are importing the corresponding Tags and Categories. Is there a way we can do this?

    Reply

  • Stanislav Velikov Stanislav Velikov admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello,

     To add a tag to a blog post:

    var taxManager = TaxonomyManager.GetManager();
               var taxon = taxManager.GetTaxa<FlatTaxon>().Where(t => t.Name == "Book").Single();
               BlogsManager blogsManager = BlogsManager.GetManager();
               var myPost = blogsManager.GetBlogPosts().Where(d => d.Title == "Post1");
               foreach(var doc in myPost)
               {
                   doc.Organizer.AddTaxa("Tags", taxon.Id);
               }
               blogsManager.SaveChanges();
    The approach is the same for adding category. There is no automatic functionality in Sitefinity that will migrate tags and categories. For example if you have imported the blogs posts from RSS feed the feed will not add the categories and tags.Regards,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: General Discussions > Importing Wordpress data into Sitefinity