scorpnetwork
Forum Replies Created
-
Hello!
No problem!. ??
I changed the JS code like mentioned for all related functions. It should make no problem with regular usage on single pages, but adds the functionality to work with multiple instances on one page. You can use it freely in a future update if you like to.
Great plugin, thanks!
Update:
My solution does not work as expected after further testing.
It seems almost all functions in front.js have to be rewritten, so that the reload trigger functions work with multiple form.cart instances on a single page.Forum: Plugins
In reply to: [Yoast SEO] Remove all SEO titlesAFAIK – Yoast saves custom SEO titles into the meta value “_yoast_wpseo_title” so this should be your solution:
WARNING: Untested.
$post_args = array( 'post_type' => 'event', 'posts_per_page' => -1 ); $posts = get_posts( $post_args ); if ( $posts ) { foreach ( $posts as $item ) { delete_post_meta($item->ID, '_yoast_wpseo_title'); } }
Forum: Plugins
In reply to: [Immocaster Wordpress Plugin] get all types of apprtemt in one epage@valbahvderashri
Check out my post in the other topic about this problem.
https://www.ads-software.com/support/topic/alle-inserate-von-einem-makler?replies=5#post-5683331Forum: Plugins
In reply to: [Immocaster Wordpress Plugin] Alle Inserate von einem MaklerL?sung gefunden. Wer noch danach sucht, einfach folgende Funktion austauschen.
Aber Achtung, die Objekte werden so nicht nach Buchstabe sortiert sondern erst nach den Kategorietypen im Array $realestatetypes./wp-content/plugins/immocaster/content_resultlist.php
// 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 .= $sPostContent.$sOutput; } return $theOutput; } } return $text; }
Forum: Plugins
In reply to: [Immocaster Wordpress Plugin] Alle Inserate von einem MaklerBin auch daran interessiert. Kann jemand auf die schnelle weiterhelfen?
Forum: Plugins
In reply to: [Yoast SEO] Meta Descriptions for dynamic pagesNo no, the problem was something different, but I managed to fix it now… I removed the default parameter from the function and used the global $pagename var – now it works.
%%excerpt%%
This one solved my problem for the articles tho – big thanks!
Forum: Plugins
In reply to: [Yoast SEO] Meta Descriptions for dynamic pagesHmmmm, not sure if this is what I want to achieve…
On articles, I want the articles excerpt to be the meta description (which is the default behavior of this plugin AFAIK). On Pages, it should be the custom meta description, which I want to define via the function posted above.
I now filled the fields you mentioned with default meta descriptions & titles, but they are now shown on every article/page, instead of the excerpt.
What am I missing?
Forum: Plugins
In reply to: [Yoast SEO] Meta Descriptions for dynamic pagesOk this seems to be the answer to my question, but I am expiriencing problems with the API functionality.
using this function to use a custom meta desc for my dynamic content pages:
function yoastMetadesc($defaultMeta) { switch($pagename){ case "xyz": $x = ($wp_query->query_vars["x"]) ? $wp_query->query_vars['x'] : "x"; switch($x){ case "y": return "123"; break; default: return "custom default desc"; } break; default: return $defaultMeta; } } add_filter( 'wpseo_metadesc', 'yoastMetadesc', 10, 1 );
My problem now is that my custom meta desc only gets shown on the frontpage. there is no meta desc inside my blog postings or on my dynamic pages ?? Only if I enter something manually inside the meta desc box widget inside on the “edit page” page. shouldnt it display the excerpt if I dont enter something manually?
All templates use the same header.php, which calls wp_head(), so this is not the problem.
Can somebody tell me what the problem is? Why isnt the meta desc populating inside my blog postings?
Forum: Plugins
In reply to: [WP-PostViews] [PostView 1.6.2] Post resets to 0 after editHmmmm…. okay, it doesnt seem to happen every time…. Im investigating a bit and will let you know when I have more details on this :/
Forum: Plugins
In reply to: [Yoast SEO] Meta Descriptions for dynamic pagesThis seems to be exactly what I was looking for.
Thank you, thank you, thank you!!!Forum: Plugins
In reply to: [WP-PostViews] [PostView 1.6.2] Post resets to 0 after editDid you find a solution for this bug? I got it too and its very frustrating.
Forum: Plugins
In reply to: RSS Feed – Thumbnail URL as image tagthis sucks! ??
isnt there any webmaster that solved this and can help me with this, on the damn internetz ??but still thanks in advance for ANYBODY that is willing to help ! ??
Forum: Plugins
In reply to: RSS Feed – Thumbnail URL as image tag*bump*
still need help on this one! somebody must know a solution for this in our big wordpress world ??