RoyalSlider and Co-Author
-
Hello,
I use you plugin for a website that is required to have more than one authors.
I also use the plugin royalslider to have some slides in the homepgage. My question is how to include both authors in the royalslider slide?
Before I use co-author, I was using Advanced Custom Fields plugin to display the author that was set using the following code:
function newrs_add_acf_variable($m, $data, $options) { $m->addHelper('display_name', function() use ($data) { // $data is a WordPress post object (for posts-slider) // just return value $field_value = get_field('editor_name', $data->ID ); return $field_value['display_name']; }); } add_filter('new_rs_slides_renderer_helper','newrs_add_acf_variable', 10, 4);
And then I just used the following variable in the RoyalSlider HTML Markup to include the author: {{display_name}}.
My question is how can I include both post authors using Royalslider and Co-Author plus?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘RoyalSlider and Co-Author’ is closed to new replies.