Possible to retrieve permalinks within wp_list_bookmarks?
-
I have a section on my sidebar called “Event and Announcements” where I have a list of links to new event pages using wp_list_bookmarks. (I create links to the pages I want under a specific link category. The way it’s supposed to look on the site is like this:
Event C
This is the description for a specific event or announcement.
see more…Event B
This is the description for a specific event or announcement.
see more…Event A
This is the description for a specific event or announcement.
see more…In addition to each “Event #” title linking to the appropriate page, the “see more…” is also link to the respective page. However, I’m having trouble getting the “see more” link to actually retrieve the required link.
This is my current relative code:
<?php wp_list_bookmarks('after=<a href="<?php the_permalink(); ?>">permalink</a>'); ?>
I tried using get_permalink, the_permalink, post_permalink, etc. Instead of the actual link, they all end up outputing the following broken HTML link:
<a href="https://www.pinstripepresentations.com/artsvest_wp/<?php the_permalink(); ?>">see more...</a>
Anyone know if this even possible?
- The topic ‘Possible to retrieve permalinks within wp_list_bookmarks?’ is closed to new replies.