Every additionally declared database can be accessed using SPIP loops as follows:
<BOUCLE_externe(name:TABLE)>
The name parameter corresponds to the name of the connector file.
Home > en > The templates > Accessing multiple databases > Accessing a declared database
Every additionally declared database can be accessed using SPIP loops as follows:
<BOUCLE_externe(name:TABLE)>
The name parameter corresponds to the name of the connector file.
In testing with WordPress some time ago, the author was able to establish a functional database link.
By creating a wordpress.php connector file, it was possible to recover the last 5 published articles with the code shown below:
<BOUCLE_articles(wordpress:WP_POSTS){0,5}{!par post_date}{post_status=publish}> <h2>#POST_TITLE</h2> <div class="texte">#POST_CONTENT</div> </BOUCLE_articles>