Mammuth
Forum Replies Created
-
Forum: Plugins
In reply to: [FLOWFACT WP Connector] Problem with ACF Pro – Cannot redeclare get_fields()I’m facing the same issue, so it’s a common problem @flowfact Team.
I receive the following error message when trying to activate the plugin:
Fatal error: Cannot redeclare get_fields() (previously declared in /homepages/46/d334297839/htdocs/EXAMPLE/wordpress/wp-content/plugins/advanced-custom-fields/core/api.php:163) in /homepages/46/d334297839/htdocs/EXAMPLE/wordpress/wp-content/plugins/flowfact-wp-connector/core/admin/settings.php on line 382
Forum: Plugins
In reply to: [WP Job Manager] Duplicates after AJAX-Load More. Only with MySQL 5.6Hi Adam,
the order seems random, but it happened always to the same jobs.After some debugging I probably found the problem:
I programmatically inserted all jobs into the database, but since I only had timestamps with a date (but no time), I added jobs with a “00:00:00” time into the DB.
This probably explains the different behaviour with the MySQL Versions.Thanks for your fast reply and the great plugin! I’m gonna close this ticket, since it’s more or less resvoled.
Greetings,
MaxForum: Plugins
In reply to: [Job Manager] Breaks Visual ComposerHi guys,
are there any updates regarding this problem?Thanks!
Forum: Plugins
In reply to: [Immocaster Wordpress Plugin] Alle Inserate von einem MaklerErg?nzung für alle Suchenden – der Code oben von Scorpnetwork enth?lt einen Fehler, sodass ggf. Text der in der Seite oberhalb der ImmoScout Objekte angezeigt wird dupliziert zwischen den Ergebnissen angezeigt wird.
Dies ist eine korrigierte Version:
// Show frontend resultlist function immocaster_content_show_resultlist($text) { global $post, $wp_query; if(is_page()) { // Get metadata $immocaster_meta = get_post_meta($post->ID,'_immocaster_meta',TRUE); // Search by region if(isset($immocaster_meta['immocaster_mb_resultlist_region'])) { if(substr_count($immocaster_meta['immocaster_mb_resultlist_region'],' | ')>=1) { $aRegion = explode(' | ',$immocaster_meta['immocaster_mb_resultlist_region']); $sRegionName = $aRegion[0]; $iRegionId = $aRegion[1]; $sRegionKey = 'geocodes'; $sRegionValue = $iRegionId; } } // Search by radius if(!empty($immocaster_meta['immocaster_mb_resultlist_all_regions'])) { $sRegionKey = 'geocoordinates'; $sRegionValue = '52.52546480183439;13.369545936584473;9999999999'; } // Code for resultlist if(isset($immocaster_meta['immocaster_mb_resultlist_show_resultlist']) && isset($sRegionKey) && isset($sRegionValue)) { $realestatetypes = array( "apartmentrent", "apartmentbuy", "houserent", "housebuy", "officebuy", "officerentmonth", "officerentsqm", "storebuy", "storerentmonth", "storerentsqm" ); foreach($realestatetypes as $realestatetype){ $aParameters = array( $sRegionKey => $sRegionValue, 'realestatetype' => $realestatetype, 'sorting' => $immocaster_meta['immocaster_mb_resultlist_sorttype'], 'price' => $immocaster_meta['immocaster_mb_resultlist_price_from'].'-'.$immocaster_meta['immocaster_mb_resultlist_price_till'] ); if(isset($wp_query->query_vars[IMMOCASTER_PAGINATOR_PAGER])) { $aParameters['pagenumber'] = (int)$wp_query->query_vars[IMMOCASTER_PAGINATOR_PAGER]; } // Fulltext if(isset($immocaster_meta['immocaster_mb_resultlist_fulltext'])) { $aParameters['fulltext'] = $immocaster_meta['immocaster_mb_resultlist_fulltext']; } // Realtor only if(isset($immocaster_meta['immocaster_mb_resultlist_realtor_only'])) { $aParameters['username'] = get_option('is24_account_username'); $aParameters['channel'] = 'hp'; } // Search with Immocaster-SDK $oImmocasterSDK = ImmocasterSDK::getInstance('is24'); $res = $oImmocasterSDK->regionSearch($aParameters); // Output $sOutput = immocaster_theme('resultlist', array($res)); $sPostContent = $post->post_content; if(isset($wp_query->query_vars[IMMOCASTER_PAGINATOR_PAGER])) { if((int)$wp_query->query_vars[IMMOCASTER_PAGINATOR_PAGER]>1) { $sPostContent = ''; } } $theOutput .= $sOutput; } return $sPostContent.$theOutput; } } return $text; }
Forum: Plugins
In reply to: [Immocaster Wordpress Plugin] Alle Inserate von einem MaklerServus miteinander,
danke für das Code-Snippet @scorpnetwork; allerdings habe ich hiermit das Problem, dass es zu Doppelungen der Objekte kommt (vermutlich dann, wenn ein Objekt in mehreren Kategorien ist).
Hat einer von euch, dieses Problem schon l?sen k?nnen?
Was ich schon probiert habe, aber nicht klappt (kenne mich leider nicht aus mit PHP), ist an das Ende der von scorpnetwork genannten Funktion noch eine if-Abfrage zu machen:
if (strpos($theOutput, $sPostContent.$sOutput) === FALSE){ $theOutput .= $sPostContent.$sOutput; }
Danke und viele Grü?e,
Max