Antwort Frage 2 Woche 6/2015 von euch tun Xuan Phuong gestellt so erhalten Sie eine Liste der Produkte nach Marken in WordPress.
Sie tun Xuan Phuong Frage:
ich mache eine Verkaufsseite auf Kücheneinrichtungen: Ich habe den Typ der Kücheneinrichtungen: Vakuum, Mikrowellen, Herde, Kamin NướngCó Marke: Teka, CataBây möchte ich die Liste der Produkte in die Marke Filtern Vakuum Geruch, Teka, den Code? Danke
beantwortet Fragen zu Foren:
Cannabjs Sie versuchen diese Passage in function.php
Crayon Syntax Highlighter V 2.7.1
PHP
Funktion Advance_field_options (Name, _ $taxonomy $post _ Type) {
$taxonomies = Get_object_taxonomies ($post _ Type, "Objekte"); [ &] Foreach ($taxonomies als $taxonomy) {
Wenn ($taxonomy & Gt; Name == $taxonomy _ Name) {
? & Gt; [ &] & Lt; wählen Sie Name = "& Lt;? PHP Echo $taxonomy _ Name;? & Gt; "Id =" "Klasse =" Suche-Select "& Gt;
& Lt;? PHP
Echo ' & Lt; option Value = "" & Gt;---Optionen & Lt; / Option & Gt; ';
$terms = Get_terms ($taxonomy- & Gt; Name, ' Orderby = Graf & Amp; parent = 0 ');
Foreach ($terms als $term) {
? & Gt; [ &] & Lt; option Value = "& Lt;? PHP echo $term - & Gt; & Gt;? Term_id; " & Gt; & Lt;? PHP echo $term - & Gt; & Gt;? Name; & Lt; / Option & Gt;
& Lt;? PHP}? & Gt;
& Lt; / Select & Gt;
& Lt;? PHP}
}
}
1234567891011121314151617
Funktion Advance_field_options ($taxonomy _ $post _ Name, Typ) {$taxonomies = Get_object_taxonomies ($post _ Type, "Objekte"); Foreach ($taxonomies als $taxonomy) {Wenn ($taxonomy & Gt; Name == $taxonomy _ Name) {? & Gt; & Lt; wählen Sie Name = "& Lt;? PHP Echo $taxonomy _ Name;? & Gt; "Id =" "Klasse =" Suche-Select "& Gt; & Lt;? Phpecho "& Lt; option Value =" "& Gt;---Optionen & Lt; / Option & Gt; '; $terms = Get_terms ($taxonomy- & Gt; Name, ' Orderby = Graf & Amp; Eltern = 0 '); Foreach ($terms als $term) {? & Gt; & Lt; option Wert = "& Lt;? PHP echo $term - & Gt; & Gt;? Term_id; " & Gt; & Lt;? PHP echo $term - & Gt; & Gt;? Name; & Lt; / Option & Gt; & Lt;? PHP}? & Gt; & Lt; / & Gt; & Lt; auswählen? PHP}}}
[Format Zeit: 0,0087 Sekunden]
und Anzeige der Zimmer würden Sie gerne an: Advance_field_options (mein Taxonomie, meine Post-Typ); und bearbeiten Sie den html-Tags
haben Sie irgendwelche anderen Vorschläge wie man eine Liste der Produkte nach Marken in WordPress Bitte hinterlassen Sie Kommentare unten, wir beantworten. Wünschen Sie Ihnen lernen WordPress die Wirkung.
Vietnamesische WordPress & Gt; Hoc WordPress & Gt; Verwendung von WordPress & Gt; WordPress-FAQ
Themen Sie lesen:
Hoc WordPress | Su Dung WordPress | Lap-Trinh WordPress | CAI Dat WordPress | Huong Dan Hoc WordPress | Huong Dan Su Mist WordPress | Payam Viet WordPress | Konvergenz-Hoc WordPress | CACH Mist Su WordPress
Suche Tendenzen:
Huong Dan cai Dat WordPress, Runde Trinh Huong Dan WordPress, WordPress Hoc y8, Hoc, Hoc online WordPress WordPress SEO, WordPress, kostenlose WordPress-Plugin, WordPress Theme, WordPress Tools, WordPress-Entwicklung, WordPress FAQ
Wp2android
Nhận xét
Đăng nhận xét