husch
Forum Replies Created
-
Forum: Plugins
In reply to: [Side Matter] sidenotes with tabsHi setzer,
Perhaps I found a solution for the previous question. Maybe also useful to other users.
1. You can split a post or page in multiple sections with the <!–nextpage–> tag. In most themes, this gives you a numbered page view at the bottom of the page (e.g. pages: 1 2 3). Side matter works fine with these multi-pages and renumbers the notes.
2. If you want a tabbed title in stead of numbers, replace the wp_link_pages function with a custom function, e.g. wp_link_pages_titled. The code for this function can be found at https://www.ads-software.com/support/topic/custom-titles-to-replace-page-numbers-on-post-pagination?replies=1
3. Add a pagetitle tag for each section; e.g. <!–pagetitle:myTitle-for-this-section–>. Best place is probably directly after the nextpage tag
4. if you want the pagetitles at the top of the post or page, modify the file content.php (for the twentytwelve theme). Put the wp_link_pages_titled function before the_content function.
5. Use CSS to style the titles. See for example, the last comment on https://wordpress.stackexchange.com/questions/14406/how-to-style-current-page-number-wp-link-pages/14460#14460Forum: Plugins
In reply to: [Side Matter] sidenotes with tabsHi setzer,
Thanks for your quick and accurate reply. I thought I had a solution after your suggestion with dynamically loaded pages, but not quite yet.
I have installed Ultimate Shortcodes. With this plugin, you can create tabs and load posts (in pages and posts; something like:[su_tabs][su_tab title=”Course description”][su_post field=”post_content” post_id=”1792″][/su_tab]
[su_tab title=”Lessons”][su_post field=”post_content” post_id=”1782″][/su_tab]
[su_tab title=”Course material”][su_post field=”post_content” post_id=”1788″][/su_tab][/su_tabs]This works well but the [ref][/ref] shortcode is no longer “interpreted”, probably because the “main” page does not contain the actual [ref]-codes as they are read-in as text.
Do you see some solution to this?
Thanks.