Return links to attachments rather than the post they are attached to

  • jnears
    Participant
    2 years, 10 months ago #17464

    Hi

    I have some posts that contain many attachments. The search returns the results of my search but all i get to click on is the link to the post. This is not an ideal experience as a user just sees a long list of attachments and has no idea which one to open.

    Is it possible to return the link in the results that points directly to the attachment rather than going to the post (it would be ok for a link to the post to also appear in the results)?

    Thanks

    Jonathan

    wpsolr
    Keymaster
    2 years, 10 months ago #17465

    I have some posts that contain many attachments

    Do you mean “internal links to media library documents”?

    jnears
    Participant
    2 years, 10 months ago #17468

    Currently they are all media library docs. Some are uploaded using advanced custom fields.

    In the future we hope to index some documents outside of the wordpress media library (mainly for security).

    wpsolr
    Keymaster
    2 years, 10 months ago #17469

    WPSOLR can only index post types. Our ACF add-on is able to also index documents inserted with ACF file fields, but will return the parent post, not the inserted children documents.

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

You must be logged in to reply to this topic.