• Resolved Isakamays

    (@isakamays)


    Hi Experts,

    I am currently using this plugin with a template on a local website. I love this module and I’m fond of my template. Unluckily, galleries doesn’t work on posts but only on pages for this template.

    Current situation :
    Therefore, I am designing my website to display pages instead of posts. Thus, I am using another module to convert posts (which the plugin create while sync the LR collections, using the first extension) into pages.
    Pros: It works fine.
    Cons: Heavy in manual operations. Collections/ are not sync anymore (if I add photos to my LR collection and publish them, the plugin create a new post instead of updating the existing page.

    My wishes :
    That is why, I am looking to create a fourth extension. Unluckily, copying 1_post.php and replacting “post” to “page” anywhere I can find it is not enough. Thus, any assistance would be very welcome.

    Thank you in advance for your help !

    https://wordpress.org/plugins/wplr-sync/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello Isakamays,

    Yes, copying the 1_post.php in the first step and you only need to change one line, it is:

    'post_type' => 'post'

    And you know already how to do it, replace it by ‘page’. That’s really the only thing you need to do. In the __construct function, you can also comment the add_filter on init, all the filters related to FOLDERS, KEYWORDS and MEDIA KEYWORDS. I don’t think you need any of those and they might induce errors since they create taxonomies related to the posts and not the pages.

    Of course, it will only work with collection/page created from Lightroom, you can’t update directly your already existing pages since they are not “linked”. You could do it manually by adding the WPLR meta manually for those but to be honest it’s better not to do this since you already have difficulty with that part. If you have a friend developer however, it might be easy for him/her to do 🙂

    Thread Starter Isakamays

    (@isakamays)

    Awesome, that is exactly what I needed. You’re right, I was going to fast and I did not check the __construct operations. I think that is what make my code break.

    Again, thank you for your help and your reactivity 😀

    Thread Starter Isakamays

    (@isakamays)

    Resolved.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Excellent! I’m glad 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Extension to create a page’ is closed to new replies.