8:50 am
October 9, 2017
Searched existing posts but couldn't find an answer.
When adding galleries with Cyberseo is it possible to populate other fields of the image Attachment Details besides title?
This code adds the image and image title:
Login to see the quote
Does the 'cseo_add_image_to_library' function accept any other parameters to fill the other fields (caption, alt, description)?
Or is there another snippet of code that can be added to the loop to insert the other info directly?
10:07 am
October 9, 2017
Check this image:
Login to see this link
When I click on images in a post gallery I get the same box. I can enter the info manually and then display it where I need to.
The 'post_title' that is being inserted by the cseo function is the same one that shows up under Attachment Details. Surely there must be a way to insert the rest of that info automatically.
Check this page:
Login to see this link
Login to see the quote
And this from the Wordpress API link you provided:
Login to see the quote
I want to get something into the 'post_content' value in the array which should then show up in the 'Description' field under Attachment Details.
10:41 am
October 9, 2017
Yes, I understand that. But I am not talking about display of information right now. I am talking about adding information into the WP database which is where Cyberseo comes in. This is regardless of theme.
All I want to do is get a value into the ‘post_content’ field of that array using the <?php...?> box in Cyberseo when a new gallery is added. Unless I am mistaken it seems it is a standard Wordpress field so I assume there must be a way to do it.
6:49 pm
October 9, 2017
You are misunderstanding me.
I know the about "Post content" box for a new post containing a gallery.
But, according to the Wordpress docs, each image added to a gallery as an attachment in a post becomes its own post and can be assigned it own "post content" (which becomes description). The Cyberseo plugin is assigning a "post title" to each of these image attachments so I don't see why it can't also assign a "post content" value to the image attachments.
Is it possible for you to send me the lines of the 'cseo_add_image_to_library' function so I can try to figure it out for myself? Or can you give me a quote for custom code to do it?
Most Users Ever Online: 541
Currently Online:
16 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2817
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1627
Posts: 8280
Newest Members:
igor.buzaev, jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmoroccoAdministrators: CyberSEO: 3913