"Read more..." button does not work and links to the homepage
Topics related to Realistic theme goes here.

supertanno

Member Rank
Posts: 15
Joined: Thu Sep 03, 2015 9:21 pm

"Read more..." button does not work and links to the homepage

linkPost by supertanno » Sun Sep 06, 2015 1:36 am

The title is pretty self-explanatory. It's this button:

Image
User avatar
Asmi Khalil

Site Admin Rank
Posts: 781
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: "Read more..." button does not work and links to the homepage

linkPost by admin » Sun Sep 06, 2015 2:08 am

Oh no this is very critical bug. Realistic has been downloaded more than 250 times and no one reported it before you. Thank you very much for reporting this issue.
Well here is how to fix it:
Open content.php file ( located in /template-parts ) with code editor and scroll down to line 46.
Now change this line:
<?php get_permalink($post->ID); ?>
to:
<?php the_permalink(); ?>
Why? because the the_permalink() function Print the post URL and the get_permalink() only return the URL ( Doesn't display it to the end user )

I am really sorry about this :oops:
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
supertanno

Member Rank
Posts: 15
Joined: Thu Sep 03, 2015 9:21 pm

Re: "Read more..." button does not work and links to the homepage

linkPost by supertanno » Mon Sep 07, 2015 12:54 pm

Bugs happen, it's alright. I'm more worried that 249 other people didn't notify you.

That being said, your fix worked.
User avatar
Asmi Khalil

Site Admin Rank
Posts: 781
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: "Read more..." button does not work and links to the homepage

linkPost by admin » Mon Sep 07, 2015 9:29 pm

I have updated the theme. Version 1.0.3 is now available at our website. Now I hope my theme get approved by WordPress theme review team and added to their directory.
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943

Who is online

Users browsing this forum: No registered users and 1 guest

It is currently Sun Aug 25, 2019 4:52 am