This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: index pdf contents of custom post type #23496
    gendalonegendalone
    Participant

    Thank you very much for reply.

    I’ll try to customize your sample function to get custom link and custom image
    getting info by $r->id post id into _postmeta table.

    Hope you will be able to implement attachment index feature with wp-download-manager plugin,
    1st becouse that plugin is most used download plugin and 2nd they don’t have plan to develope attachment index feature, so you can be linked by them to use your plugin for search.

    in reply to: index pdf contents of custom post type #23471
    gendalonegendalone
    Participant

    Hi again,

    I could have found a workaround but there is a problem with relative link:

    I upload pdf files in standard wp media library and index search works fine (in search bar I can find my results)
    but results can link to: attachment file, attachment page or attachment parent post.

    I’ve tried to use another plugin to customize media link, but in this case too, the link is stored in _postmeta table.

    If there is a way to use a custom link (and custom image too) should be a valid workaround
    (I know that pdf files should be uploaded twice but I don’t see any other solution)

    Thank you

    in reply to: index pdf contents of custom post type #23398
    gendalonegendalone
    Participant

    Hi Ernest,
    thank you for quick reply;

    I’m using wp-download-manager (pro version);

    You are right, packages are stored as custom posts (in _posts table), but theis attachments (multiple files in pro version) are stored in _postmeta table, refer to their post_id, with custom meta_keys (__wpdm_files) and with custom meta_value (eg. a:3:{i:1562334567887;s:30:”FILE1.pdf”;i:1563456789376;s:30:”FILE2.pdf”;i:156345353344;s:30:”FILE3.pdf”;}

    Here we don’t know custom relative path becouse it is a value stored in _options.

    I think that is a very complex case….

    in reply to: index pdf contents of custom post type #23388
    gendalonegendalone
    Participant

    Hi Ernest,
    excuse me for disturb,
    I understand what kind of work there’s behind coding and I can image you don’t have time to implement my particular feature;
    in the meantime, where could I look for into source code to extend pdf index to files not included in media library (eg. file uploaded under download manager)?

    Thank you for your time.

    in reply to: index pdf contents of custom post type #23089
    gendalonegendalone
    Participant

    Thanks for reply,

    if source code modification is not too complex, and not too loss-time for you,
    I could try to do it on my installation.

Viewing 5 posts - 1 through 5 (of 5 total)