• Dear Developers,

    First of all, thank you for a wonderful plugin.

    I have a small question, i don’t know the details of cross-posting and how it works, but what I need to achieve is to, say, let my wordpress (image gallery) plugin know that the entry is cross-posted, so that I limit the number of images shown in LJ entry and give a link to a wordpress blog entry where I show all the images.

    p/s/ pictures are fetched from a data base and <div>’s are generated in php. So what I would like to have is a PHP function that would say that the current query is used for cross-posting to LJ instead of shown in WordPress site.

    https://www.ads-software.com/extend/plugins/lj-xp/

Viewing 1 replies (of 1 total)
  • Thread Starter davydov-denis

    (@davydov-denis)

    Googling a bit, I found a filter, which I can apply to change content, but it would be much easier if there would be a PHP function or a variable which would tell that the content is generated for crossposting.

    add_filter(‘ljxp_pre_process_post’, ‘ljxp_filter_test’);
    function ljxp_filter_test($content) {
    return “<p>Filter works!</p>”.$content;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: LiveJournal Crossposter] different dynamic (PHP) content in WordPress post and LJ entry’ is closed to new replies.