Um diese Funktion mit Unterordnern in deinem Theme zu verwenden, stelle einfach den Ordnernamen vor den Slug. Wenn du beispielsweise einen Ordner namens „templates“ in deinem Theme-Verzeichnis und einen Template namens „template-socialmedia.php“ in diesem Unterordner hast, kannst du get_template_part() wie nachfolgend verwenden: Mein Template Part liegt im Ordner meines Themes unter templates/ mit dem Dateinamen […]
mehr lesenGerade stolpere ich über einen Beitrag, den ich schon vor einer ganzen Zeit vorbereitet habe, der aber irgendwie in Vergessenheit geraten ist. Template Parts in WordPress! Template Parts vereinfachen die globale Darstellung auf mehreren Seiten, ohne das Theme an mehreren Stellen anpassen zu müssen. Das kann dann interessant sein, wenn man zum Beispiel temporäre Anpassungen […]
mehr lesenWenn du ein WordPress Theme erstellst und vollkommen blank anfängst, fehlen dir mitunter Features, die du bei einem fertigen Theme zumeist vorfindest. Auch die Beitragsformate müssen zunächst aktiviert werden. Das ist einfacher als es klingt und hierzu sind nur ein paar kleine Anpassungen notwendig. In der functions.php müssen die Beitragsformate ergänzt werden. Das können wie […]
mehr lesen
Cookie | Dauer | Beschreibung |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |