LiveJournal Crossposter
different dynamic (PHP) content in WordPress post and LJ entry (2 posts)

  1. davydov-denis
    Posted 4 years ago #

    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.


  2. davydov-denis
    Posted 4 years ago #

    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;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • LiveJournal Crossposter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic