Search
Other Articles Anywhere questions
Forum

articles anywhere Advanced Custom Fields integration

Anne Garger's Avatar Anne Garger
I was looking at this post regularlabs.com/forum/articlesanywhere/4...ithin-a-custom-field

From your discussion with Marc Dechevere it looks like the code below should work but it's not working for me

{articles category "correspondent-ports"}
{source}
<?php
$value = json_decode('[open-street-map output="value"]');
$latlon = $value->coordinates;
echo $latlon;
?>
{/source}{/articles}



when I use {articles category "correspondent-ports"}[open-street-map output="value"]{/articles} I get {"coordinates":"47.60289560000001,-122.33984000000001"}

When I replace [open-street-map output="value"] with code between {source} tags using Sourcerer I get nothing

Here's my page anneg8.sg-host.com/ports.html

thanks in advance for any help you can give me
Peter van Westen's Avatar Peter van Westen ADMIN
Looks like you are missing a = in the {articles} tag
Please post a rating at the Joomla! Extensions Directory
Anne Garger's Avatar Anne Garger
I have it in my code, I forgot to add to the code in the question I submitted

{articles category="correspondent-ports"}

{source}<?php
$value = json_decode('[open-street-map output="value"]');
$latlon = $value->coordinates;
echo $latlon;
?>{/source}

{/articles}
Peter van Westen's Avatar Peter van Westen ADMIN
It is probably due to the system plugin ordering. Try changing the ordering of the plugins in question.
See: regularlabs.com/blog/242-plugin-order-is-important

Sourcerer should in your case be ordered AFTER Articles Anywhere.
Please post a rating at the Joomla! Extensions Directory
Anne Garger's Avatar Anne Garger
Thanks it was a plug in ordering issue.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription