The PRO version of Articles Anywhere for Joomla 3 also has LIMITED support for K2 items. To get the K2 item, just add a type="k2" attribute to the tag, like:

{article type="k2" article="Some K2 item"}...{/article}
{article type="k2" article="some-k2-item"}...{/article}
{article type="k2" article="123"}...{/article}

You can also use item, category and tag filters to get multiple K2 items.

To place all K2 items in the K2 category 12 in descending alphabetical order:

{articles type="k2" category="12" ordering="title DESC"}...{/articles}

To place all K2 items with the K2 tag "my-special-tag":

{articles type="k2" tags="my-special-tag"}...{/articles}


K2 does not have an intro or fulltext image. Instead you can use these tags to get the data of the main image attached to the K2 item: [image], [image-url], [thumb], [thumb-url].

You can also get images from content as explained in the main Images section.

Extra fields

K2 has the ability to set extra fields, much like the Custom Fields available in Joomla.
To display these, you can simply use the data tags: [extra-1], [extra-2], etc...
Where that number is the ID number of the extra field.

Editor Button

To enable the option to use K2 content in the editor button popup, you need to make sure the "Use K2 content" option is switched on in the Articles Anywhere system plugin settings.

Limited Support

As stated above, the support for K2 is limited. So you can not use all the bells and whistles mentioned elsewhere in this tutorial.

K2 has a particular way of doing things and storing data in the database which makes support for it very cumbersome.
Also, K2 does not add much to the table anymore, now that Joomla supports Custom Fields out of the box.
So if you're still using K2, our advise is to switch to Joomla core content (articles, categories, tags, custom fields) as soon as possible.