daelemans_m
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Use $file in urlI tried
$page = get_page_by_path('plopsaland-de-panne/praktisch/openingsuren/' . $maand . '/');and that works.Forum: Fixing WordPress
In reply to: If page title is current monthI works! I changed the language into Dutch and made the first letter of the month uppercase.
Forum: Fixing WordPress
In reply to: If page title is current monthI just tried and that gives me the header and footer as well.
Maybe I have to say that the page titles are in Dutch (I changed it in my first post in this topic because this is an English forum). If I echo the code you just gave me, it says ‘July 2015’ and I need ‘Juli 2015’.
Forum: Plugins
In reply to: [Plugin: Advanced Custom Fields] Get field without spaces and charactersI found a code which works partially:
<?php $a = array(':',' - '); $b = array('',''); $str = '10:00 - 18:00'; echo str_replace($a, $b, $str); ?>That code displays 10001800.
But I have to do this multiple times with different hours (see
$str) and I don’t want to change the$streach time. When I replace the'10:00 - 18:00';withthe_field("dag-2");(which equals to 10:00 – 18:00), it displays the field but it replaces nothing.Someone please? 🙂