Hallo Zusammen,
ich würde gerne die Daten, welche man mit cForms II in der Datenbank speichern kann auslesen und auf einer Seite chcronologisch, auf einer anderen Seite dann detailiert ausgeben. Ich habe schon gelesen, daß ich dazu die index.php als Template speichern muß und es der Seite übergeben. Doch weiß ich nicht, wie ich den Code abändern muß. In dem Beispiel ging es um Fotos aus Posts.
[LEFT] [COLOR=#000000] [COLOR=#0000bb]<?php
[/COLOR][COLOR=#007700]global [/COLOR][COLOR=#0000bb]$wp_query[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000bb]$new_query [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]array_merge[/COLOR][COLOR=#007700]( array( [/COLOR][COLOR=#dd0000]'post_type' [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#dd0000]'attachment'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'post_status'[/COLOR][COLOR=#007700]=>[/COLOR][COLOR=#dd0000]'inherit'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'post_mime_type'[/COLOR][COLOR=#007700]=>[/COLOR][COLOR=#dd0000]'image' [/COLOR][COLOR=#007700]), [/COLOR][COLOR=#0000bb]$wp_query[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]query [/COLOR][COLOR=#007700]);
unset( [/COLOR][COLOR=#0000bb]$new_query[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'pagename'[/COLOR][COLOR=#007700]] );
[/COLOR][COLOR=#0000bb]query_posts[/COLOR][COLOR=#007700]( [/COLOR][COLOR=#0000bb]$new_query [/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]?>[/COLOR] [/COLOR] [/LEFT]
Es wäre super, wenn mir jemand dabei helfen könnte:-)
Danke, peregrino:smile: