2015-07-08, 05:00:14
(2015-07-07, 01:54:16)pikku Wrote: But how can I get the above call for the name into the call for a gallery-link!?
As I said, I´m no coder, so I messed around a lot with the code, but could not find the right way.
Please, if someone is so kind to write me a few lines of nice code with get.. within a get...!
Just to be shure, you get me, I right down what I mean, but of course, that´s not correct php anymore:
Code:<?php get_i18n_gallery_link('get_special_field('gallerie');',
array('url'=>'get_special_field('gallerie');', 'thumb'=>1)); ?>
The following should work:
Code:
<?php get_i18n_gallery_link(return_special_field('gallerie'),
array('url'=>return_special_field('gallerie'), 'thumb'=>1)); ?>
get_special_field will output the content of the field, return_special_field will just return it and make it usable in the gallery call. Of course this assumes that gallery name and slug are identical.