Behavior of shortcode attribute session_link=”anchor”
-
Hello!
tl;dr:
[wpcs_schedule session_link=”permalink”] creates links like this: https://mypage.com/sessions/my-session
[wpcs_schedule session_link=”anchor”] creates links like this: https://mypage.com/sessions/my-session/#my-session
I’d however expect https://mypage.com/%5Bcurrent page]#my-sessionLong version:
Awesome plugin! I just sent feedback to Chris from Road Warrior Creative bur forgot to mention this.
I am not sure if this is an issue with the plugin or just me not understanding the documentation. If the latter is correct, and I am not the only one misunderstanding, it might be a good idea to add another sentence of explanation.It’s about the using the shortcode [wpcs_schedule session_link=”anchor”]. It is explained here as “Links to an ID of the session post slug on the same page. Example: #my-session”
To my understanding, this would do the following:
I have the shortcode in a page https://mypage.com/overview. The same page contains some additional descriptive text. Clicking a link in the schedule should (in my opinion) go to https://mypage.com/overview#my-session. So it just scrolls the page down to an html anchor I defined somewhere in my additional descriptive text.However, the actual link created points to https://mypage.com/sessions/my-session/#my-session. I am not sure if this is the link format intended to be created.
In contrast, using [wpcs_schedule session_link=”permalink”] creates links in this format: https://mypage.com/sessions/my-session. That makes sense (-:
- The topic ‘Behavior of shortcode attribute session_link=”anchor”’ is closed to new replies.