Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ivanko12

    (@ivanko12)

    Just a quick update here.

    I was able to do it, but it wasn’t smart to have “titles” in one row separated by “comma” as there can be multiple commas for the Title, but you can use any other separator then, example: “|”

    I have set that my Titles are “CustomField” as “_DocumentTitle” and then passed the whole node into it, after that this is the shortcode:

    https://pastebin.com/TN83tw0q

    While the solution is solid, the way that you need to use “shortcode” to see the attachment in the post is just weird, because you can’t edit anything and they are stuck there forever.

    My suggestion for the plugin in the future is that it handles attachment somehow normal and insert into the post <a href> link and have possibility for the Titles as well, so anyone can later edit it in normal page/post.

    In the end, I had to create manual script which will update every page/post and add <a href> link inside so anyone can later edit it or manipulate.

    As for the gallery and the first image = featured image. I simply did just “update” the post through API, after that, inside the database shortcode changed from [gallery file] to [gallery file=123,4325,1231], and with the loop removed the first value from gallery file inside the database and that did the trick.

    You may close the thread.

    Thread Starter ivanko12

    (@ivanko12)

    Hello,

    Understandable, if I have standalone import premium and reach out to you through email, will I get the exact way/code how to do it?

    Thanks.

    Thread Starter ivanko12

    (@ivanko12)

    Hey,

    Thanks.

    If I use get_the_title( $key ), how to loop through “documenttitles=xxx,xxx,xxx” in order to import it into key?

    Regards.

    Thread Starter ivanko12

    (@ivanko12)

    Hey,

    Thanks for the info.

    I would need one more assistance about this https://d.pr/D8nr7L

    1. This is showing “Download filename.pdf” is there anyhow possible to import the “title” as well and instead of “Download filename.pdf” it shows the title.

    Title is formatted same as data, for example:
    documentfiles=”First.pdf,Second.pdf,Third.doc
    documenttitles=’FirstFile,SecondFile,ThirdFile’

    So what I want, instead of First.pdf, it writes from documentttiles which FirstFile etc…

    My guess is this part $value, but no idea how to do the whole steps to get that?

    $output .= ‘Download ‘ . $value . ‘<br>’;

    2. Files which are inside “/wp-content/uploads/wpallimport/files” have the original date, I would like that to stay when the plugin imports them so it’s not “today” when it’s imported, and then if possible when they show on the website, they are ordered by the date and maybe it shows the date of the upload, as there can be many files inside of the post and they are uploaded on different Dates/Years.

    • This reply was modified 2 years ago by ivanko12.
    Thread Starter ivanko12

    (@ivanko12)

    Hey,

    I’ll try to explain more

    For example, this is the post:

    https://prnt.sc/nBkkgclXdMVp

    And this is the data of the images being imported(node):

    “Images = img_3019.jpg,img_3036.jpg,img_3039.jpg”

    While he does download the images and import them in the media/gallery, and put the first picture as “featured image”, I want that the rest of the pictures are also in the post under where it says “[pic1] [pic2]” so [pic1] = img_3019.jpg, [pic2] = img_3036.jpg and [pic3]= img_3039.jpg and show them on the appropriate location. And that’s like with every post, it starts from pic1 to picxxx, it’s not continuation that the first image in the second post is “[pic4]” but it’s again “[pic1]”
    —————————
    As for the documents, the same thing, it does import them, but they are not inside the post and needs manual work to show them in the post.

    From the first screenshot, you have the same example, “[doc1]”. I want that the document which was in the node
    Documents = “aaa.docx”, “bbb.docx”, “ccc.pdf” shows in post where is [doc1] [doc2] [doc3].
    So, same thing like with the pictures.
    —————————
    Another thing is that if I use [gallery] on the end of the post, it will show the featured image in the gallery as well, can that somehow be skipped, so it shows only from the second picture, as the first picture is used just for the “featured” image which is not needed in the gallery.

    Thanks!

    Thread Starter ivanko12

    (@ivanko12)

    Thanks for the feedback,

    I got an idea about the first idea, but would need at least help from the wordpress part if possible.

    As the gallery is contain inside the DB>wp_posts>post_content and end of each post there is [gallery link="file"] and it’s loading fine, but when you go edit post, then gallery, and just press “update gallery” and “update post” it changes to [gallery link="file" ids="31731,31732,31733"].

    So, my question is there anyway to do that automatically, like just go through gallery and post, and just somehow force update to get that inside the database with ids? After it’s there, I could easily use regex inside the DB to remove the first image there for all posts.

    max_execution_time is not an issue as it’s not “shared” and can be changed per will.

    Thread Starter ivanko12

    (@ivanko12)

    Doing it manually for 8k posts is not something I would like to go through.

    It’s default gallery which is called in every post with [gallery]

    Posts were imported and “first image” which was found was used as featured image, but it was put in gallery as well, so it’s showing in the post.

    I would like that that specific first picture in gallery is not shown if there some kind of easy way to do it for 8k posts?

Viewing 7 replies - 1 through 7 (of 7 total)