WordPress.org

Ready to get started?Download WordPress

Forums

Adding posts to all the sub-blogs on a MS installation (3 posts)

  1. tanver
    Member
    Posted 3 years ago #

    I need to add posts [to be read from a TEXT/XML file] to all the sub-blogs and/or sites mapped through "Domain Mapping" plugin, using wpdb class.
    I will appreciate an expert advice as to how, I should proceed. I have to schedule them as at most 10 posts per day per blog.

  2. truefunnystories
    Member
    Posted 3 years ago #

    Do you have a plugin to do it? If so what you need to do is just add corn in cpanel? If no, you should write a plugin to read content from text file first, right?

  3. tanver
    Member
    Posted 3 years ago #

    No, I don't have any plugin installed and will code the functionality myself. Yes, will have to write the code to write the posts data from the text [DELIMITED] or XML file as may be appropriate. I have done almost a similar project for WP 2.8+ using the table prefix for the different domains.
    Now have to do almost the same for a 3.1+ installation with 180+ sub-domains and nothing like table prefix sort of thing available - but blogid. I am not sure how the the 'Domain Mapping' plugin arranges the different domains under a main site.
    One other option could be to place the listings in a single main site and share it across the domains? any comments on this will be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic