• Resolved zarja87

    (@zarja87)


    In Documentation on Github there is example how fast add information with

    do_action( ‘sublanguage_import_post’, $data);

    Don’t understand where I must add this code for making pages? Can’t find any fields in your plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I think it depends from what source you want to import post. Can you explain what you are going to do?

    Thread Starter zarja87

    (@zarja87)

    Don’t understand about “what source”. There are any variants? I understand that I must make code like in example.

    I try to add the code from example in function.php and couple php-script plugins, but don’t understand how make it work.

    I want to add only pages and posts in 10 different languages and have same post_name for them.

    My site is here https://so-wiki.com/

    • This reply was modified 5 years, 8 months ago by zarja87.

    This function is supposed to be used to import content from a source. You probably want to loop through the datas you want to import and call it at every iteration to create a single page or post.

    Thread Starter zarja87

    (@zarja87)

    I want make the code like in example, execute it and delete from place where I add it.
    And make it very many times.

    Can I add my code like in example to the “source” and execute it? How to make it?

    Thread Starter zarja87

    (@zarja87)

    Are there any variants or ideas how to add translation fast with code?

    Sorry this is a free plugin and I can’t provide this type of support.

    Thread Starter zarja87

    (@zarja87)

    Ok! Thank you very much for this amazing plugin!
    It’s really cool and simple!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to Import post with do_action?’ is closed to new replies.