read more link on speakrs page

If you are planning to organize any conference or festival, there are many ways to get help via our forum.
GK User
Wed Jan 28, 2015 9:49 am
I will have around 60-65 speakers. the default speakers page contains 8 and it looks good like this. so for my extra speakers can i add read more link and have the rest of the speakers in another page? or do you have a better idea to magane this large number of speakers?
User avatar
Senior Boarder

GK User
Wed Jan 28, 2015 10:51 am
Hi,

Could you please provide me with a URL to your speakers page, either here or via PM (click the “Private Message” text underneath my avatar) because I'm not sure which speakers page do you mean, on the frontpage or another view?
User avatar
Moderator

GK User
Wed Jan 28, 2015 12:41 pm
it is the one on the frontpage, on dashboard it is a submenu of frontpage: http://itef.kalemkultur.com/
User avatar
Senior Boarder

GK User
Wed Jan 28, 2015 1:53 pm
Try to edit Events/shortcodes.php file and change this line:
Code: Select all
'posts_per_page' => 100

to i.e. :
Code: Select all
'posts_per_page' => 8


now you'll have only 8 spekaers, please go to your subpge of the frontpage where you have the shortcode:
Code: Select all
[Speakers source="speakers"]


and add this code below with link to your full speakers page:
Code: Select all
<a class="readon" href="#link-to-your-speakers-page">More Speakers</a>
User avatar
Moderator

GK User
Thu Jan 29, 2015 2:33 pm
i think i managed to do what you instructed here:http://itef.kalemkultur.com/?lang=en_us
but i do not want to open speakers list (page with picture and short biography) after clicking on more speakers. i want to open a page which is a continuation of speakers (page with picture and just a name). is that possible? which link should i paste inside this code then?
also what will happen if i create the translation of this speakers page with the shortcode? then i will need another shortcode for the translation page, right?
User avatar
Senior Boarder

GK User
Thu Jan 29, 2015 4:17 pm
Unfrotunately it's not possible (it requires shortcode modifications and use one shortcode with i.e. 8 speakers on the frontpage and other shortocode on completely different page with all speakers).

Regarding the translations, if spekaers single page will be translated, it will be probably enough to use one (the same ) shortcode.
User avatar
Moderator

GK User
Thu Jan 29, 2015 5:27 pm
for the first issue; can i have more than one speakers page (submenu of frontpage)? in that way i can divide the speakers into two or tree category/groups... but will i use the same shortcode still?
User avatar
Senior Boarder

GK User
Fri Jan 30, 2015 10:30 am
Yes, you can have more than one speakers page and display another sources, but it's the same shortcode so it will display the same amount of speakers (changed in shortcode), in this case you will have to create additional shortcode attribute for amount of spekaers, then you can use different amount depends on the shortcode attribute.
User avatar
Moderator

GK User
Thu Mar 05, 2015 10:28 pm
by using the code you provided above i created a page with 'read more' button/link. here it is: http://itef.kalemkultur.com/?page_id=67
but the problem is that it does not disappear after leading to the page: http://itef.kalemkultur.com/?page_id=1329

here is my code: <a class="readon" href="http://itef.kalemkultur.com/?page_id=1329">Read More</a>

well, i put the link of the same page that i put the button inside.... i wanted to put a button for the viewers to click for the rest of the content.... but i do not want to see that button on the page with the full content (here: http://itef.kalemkultur.com/?page_id=1329). what can i do?
User avatar
Senior Boarder

GK User
Fri Mar 06, 2015 9:41 am
Hi,

This solution was for the frontpage, when the speakers shortcode is used. For the spekaers cateogry, try to edit Events/template.speakers.php file and add this fragment:
Code: Select all
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="readon"><?php _e('Read more', 'events'); ?></a>


after:
Code: Select all
<?php the_content(''); ?>


around line 80.
User avatar
Moderator

GK User
Fri Mar 06, 2015 4:54 pm
i added the code now i have read more button for every speakers' pages.... but the problem is that i have them for Turkish speakers as well. i want to write there "devamını oku", instead of "read more" in Turkish pages. how can i achieve this?
User avatar
Senior Boarder

GK User
Sun Mar 08, 2015 7:58 pm
i do not have string translation option with my lang plugin. i hope i can fix this via eding some codes with help of you?
User avatar
Senior Boarder

GK User
Mon Mar 09, 2015 9:24 am
Hi,

Are you using WPML, right? IN this case you can use differenct code from my previous post depends on the lanugage, please check this solution:
http://wpml.org/forums/topic/using-icl- ... -headings/
User avatar
Moderator

GK User
Tue Mar 10, 2015 9:12 am
many thanks for the solution. my problem is fixed...
User avatar
Senior Boarder


cron