New answers tagged

2

It's a little hard to think in meta_query code for complicated case like this and without access to data. :) What you have working can be expressed as two following conditions: start_date BETWEEN event_begin and event_end end_date BETWEEN event_begin and event_end Your first case with both in between seems irrelevant, since these two will catch it ...


0

You can use WP_Query to query posts from Date A to Date B, here are all Date Parameters for the WP_Query object : //////Date Parameters - Show posts associated with a certain time and date period. //http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters 'year' => 2014, //(int) - 4 digit year (e.g. 2011). '...


3

Note that if you remove the <pubDate> tag from the rss2 feed, then it will become unvalid. So you don't want to do that! If it's empty: <pubDate></pubDate> then the feed will still not validate: > pubDate must be an RFC-822 date-time So that wouldn't be an option either. If you want it static, for all items, then you could use ...


0

To search for posts based on date, you can set up a quick instance of WP_Query. The best place to look is the official documentation, and in particular the section on the date parameters. A basic search for posts in a particular month will look a little like this: <?php $the_query = new WP_Query( array( 'm' => '201607', // will return posts in ...


2

go to admin follow 2 simple steps Date Format - Custom : j. F Y Change Site Language which one you want change and then save


1

WordPress has a special function for translating dates, called date_i18n. General usage: echo date_i18n( $dateformatstring, $unixtimestamp, $gmt); Supposing you have German as your site's language this would be: echo date_i18n( 'j. F Y', false, false); You can also import the time format from the admin settings, like this: echo date_i18n(get_option('...


1

I have added the following code to child theme function and it works, add_filter('the_time', 'modify_date_format'); function modify_date_format(){ $month_names = array(1=>'Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'); return get_the_time('j').'. '.$month_names[get_the_time('n')].' '....


1

Use locale in wp-config.php de_DE, language settings depends on admin panel language, it is possible to separate site language and admin panel language. Also in wp-content>languages look for de_DE.po, use search.



Top 50 recent answers are included