Creating a function within functions.php to change the date

You can use the PHP’s strtotime() and WordPress’s date_i18n() functions: function MY_FUNCTION( $input ) { // Removes commas so that we’ll get the proper timestamp. Otherwise, the // strtotime() function would return FALSE. $input = str_replace( ‘,’, ”, $input ); // Retrieve the UNIX timestamp of the date. $timestamp = @strtotime( $input ); // Returns … Read more

Pagination gives 404 in template

I did what Rarst told me to do. First I searched around in the Pods Framework documentation. This solved my problem. Here’s what the code looks like right now. <?php $params = array( ‘orderby’ => ‘publish_date.meta_value DESC’, ‘limit’ => 10 ); $fltNewsPods = pods( ‘fltnews’, $params ); while ($fltNewsPods->fetch()) { echo “<li class=”content-list-item”>”; $podsForNewsItem = … Read more

Pods cms and “advanced custom fields” plugin

Development of Pods 2.0 definitely won’t stop, the funding problems explained in that dev post were alluding to an upcoming announcement that we’ll be pushing some of the enterprise and “extra” functionality of Pods 2.0 into a premium version targeted towards firms with more advanced and specific needs. On the data structure, Pods 2.0 handles … Read more