how to shorten code from get_next_posts_link to fix url-hiding-bug
-
Is there a way to shorten the url used with the older/newer posts buttons?
https://developer.www.ads-software.com/reference/functions/get_next_posts_linkI am using URL Hiding and the code does the link wrong. My server has this adress: https://141.64.68.151/wordpressgocart/, this is hidden using https://www.gocartography.de. Both adresses are defined in wordpress under ‘General’. The link to the next page at the end of my loop should be https://www.gocartography.de/?paged=2 But it becomes https://www.gocartography.de/wordpressgocart/?paged=2
That does not work. I was looking at the code in link-template.php:return ‘a href=”‘ . next_posts( $max_page, false ) . “\” $attr” . preg_replace(‘/&([^#])(?![a-z]{1,8};)/i’, ‘&$1’, $label) . ‘/a’;
Can I somehow take the string made by next_posts( $max_page, false ) and shorten it somehow? Take out the middle part?
Greetings
Drongo
- The topic ‘how to shorten code from get_next_posts_link to fix url-hiding-bug’ is closed to new replies.