May 4, 2011

Trim last part of image URL | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Trim last part of image URL
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
November 6, 2024
11:21 am
Avatar
B8europe
Member
Members
Forum Posts: 48
Member Since:
February 16, 2016
sp_UserOfflineSmall Offline

Hi,

in Custom PHP code I'm using $post['custom_fields']['thumb'] = trim($xml_tags['size896x504']['val']);

using: <size1024x576>Login to see this link</size1024x576>

I'm trying to import an image as a thumbnail. Example:

Login to see this link

Manually import in WordPress media the image is uploaded as

Login to see this link

However, CyberSEO is not able to do that.

How can I trim the last part after .jpg The part "?cno=xxxx" changes for every item

November 6, 2024
11:38 am
Avatar
CyberSEO
Admin
Forum Posts: 3926
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

If you need to write a code snippet, always use the CyberSEO GPT Assistant: Login to see this link

scr.gif

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
30 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: 2833

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1631

Posts: 8306

Newest Members:

willem7904, limanivaldo, TheRiz, mrsanichols, namyahweh, zemaitis.geektech

Administrators: CyberSEO: 3926