[Plugin: NextGEN Gallery] creating gallery via [Plugin: Import HTML Pages]
-
Q: What line of code in NextGallery Plugin creates new gallery and how to change it to make new code that will create new gallery with specific ID that I can put in Import html plugin ?
Q2: or how to make script that will create new gallery for all posts in specific category? (gallery name = post name, and custom field ‘gallery_id’ for specific post = gallery ID)
Explanation:
I would like to make modification in Import HTML Plugin:
– when importing html pages I would like script (import html plugin) to create NextGEN gallery to each imported post. In ideal situation ID of new created NextGEN Gallery would be the same as created post.
For example.
I have four html files:
best-name.html
another-title.html
trip.html
night.htmlThen Import HTML Pages creates four posts
ID: 100 Best name
ID: 101 Another title
ID: 102 Trip
ID: 103 NightIn the end of Import HTML Pages scripts I receive the ID of new posts.
So in this place I want add php code that would create four NextGEN galleries with specific ID:Gallery ID: 1 Name: Best name
Gallery ID: 2 Name: Another title
Gallery ID: 3 Name: Trip
Gallery ID: 4 Name: Night(or will return the ID of new created gallery so I will be able to save it in custom fields of specific post).
But I don’t know what piece of code from NextGEN Gallery should I put into the import html pages plugin. I’ve already done some modification in import html pages plugin. But NextGEN Gallery is too complicated for me.
- The topic ‘[Plugin: NextGEN Gallery] creating gallery via [Plugin: Import HTML Pages]’ is closed to new replies.