Title: scorpnetwork's Replies | WordPress.org

---

# scorpnetwork

  [  ](https://wordpress.org/support/users/scorpnetwork/)

 *   [Profile](https://wordpress.org/support/users/scorpnetwork/)
 *   [Topics Started](https://wordpress.org/support/users/scorpnetwork/topics/)
 *   [Replies Created](https://wordpress.org/support/users/scorpnetwork/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/scorpnetwork/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/scorpnetwork/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/scorpnetwork/engagements/)
 *   [Favorites](https://wordpress.org/support/users/scorpnetwork/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Product Add-Ons] Using multiple instances on one page (like pizza delivery websites)](https://wordpress.org/support/topic/using-multiple-instances-on-one-page-like-pizza-delivery-websites/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-multiple-instances-on-one-page-like-pizza-delivery-websites/#post-15178816)
 * 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.
 * [https://pastebin.com/EVPhNuiL](https://pastebin.com/EVPhNuiL)
 * Great plugin, thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Product Add-Ons] Using multiple instances on one page (like pizza delivery websites)](https://wordpress.org/support/topic/using-multiple-instances-on-one-page-like-pizza-delivery-websites/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/using-multiple-instances-on-one-page-like-pizza-delivery-websites/#post-15140160)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Remove all SEO titles](https://wordpress.org/support/topic/remove-all-seo-titles/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/remove-all-seo-titles/#post-9187070)
 * AFAIK – 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Immocaster Wordpress Plugin] get all types of apprtemt in one epage](https://wordpress.org/support/topic/get-all-types-of-apprtemt-in-one-epage/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/get-all-types-of-apprtemt-in-one-epage/#post-4820836)
 * @valbahvderashri
    Check out my post in the other topic about this problem. [http://wordpress.org/support/topic/alle-inserate-von-einem-makler?replies=5#post-5683331](http://wordpress.org/support/topic/alle-inserate-von-einem-makler?replies=5#post-5683331)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Immocaster Wordpress Plugin] Alle Inserate von einem Makler](https://wordpress.org/support/topic/alle-inserate-von-einem-makler/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/alle-inserate-von-einem-makler/#post-4886636)
 * Lö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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Immocaster Wordpress Plugin] Alle Inserate von einem Makler](https://wordpress.org/support/topic/alle-inserate-von-einem-makler/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/alle-inserate-von-einem-makler/#post-4886635)
 * Bin auch daran interessiert. Kann jemand auf die schnelle weiterhelfen?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta Descriptions for dynamic pages](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/#post-3680586)
 * No 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta Descriptions for dynamic pages](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/#post-3680581)
 * Hmmmm, 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta Descriptions for dynamic pages](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/#post-3680579)
 * Ok 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostViews] [PostView 1.6.2] Post resets to 0 after edit](https://wordpress.org/support/topic/postview-162-post-resets-to-0-after-edit/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/postview-162-post-resets-to-0-after-edit/#post-3461449)
 * Hmmmm…. 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta Descriptions for dynamic pages](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/meta-descriptions-for-dynamic-pages/#post-3680520)
 * This seems to be exactly what I was looking for.
    Thank you, thank you, thank
   you!!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostViews] [PostView 1.6.2] Post resets to 0 after edit](https://wordpress.org/support/topic/postview-162-post-resets-to-0-after-edit/)
 *  [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/postview-162-post-resets-to-0-after-edit/#post-3461447)
 * Did you find a solution for this bug? I got it too and its very frustrating.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [RSS Feed – Thumbnail URL as image tag](https://wordpress.org/support/topic/rss-feed-thumbnail-url-as-image-tag/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/rss-feed-thumbnail-url-as-image-tag/#post-1869715)
 * this 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [RSS Feed – Thumbnail URL as image tag](https://wordpress.org/support/topic/rss-feed-thumbnail-url-as-image-tag/)
 *  Thread Starter [scorpnetwork](https://wordpress.org/support/users/scorpnetwork/)
 * (@scorpnetwork)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/rss-feed-thumbnail-url-as-image-tag/#post-1869706)
 * *bump*
 * still need help on this one! somebody must know a solution for this in our big
   wordpress world 🙂

Viewing 14 replies - 1 through 14 (of 14 total)