Support » Themes and Templates » get_permalink not working in child theme?

get_permalink not working in child theme?

  • I am using WordPress multi-site functionality and making a child theme out of the parent theme. The problem is that has_post_thumbnail is not working as well as the get_permalink. If I use echo get_permalink($post->ID); it doesn’t show anything, if I use echo get_permalink(); it shows wrong url likewww.yoursite.com/uncategorized/postname instead it should show www.yoursite.com/london/category/postname. Can anyone please help?

  • The topic ‘get_permalink not working in child theme?’ is closed to new replies.
Skip to toolbar