Forums

Sociable
For custom post type/taxonomy support (1 post)

  1. gsandip
    Member
    Posted 1 year ago #

    @BlogPlaycom : In Sociable plugin there is no functionality for Custom post type pages or Custom taxonomy page. If my Custom post type page I want to share using sociable there is no way available as WP_QUERY might not set for it. I have implemented this by applying one filter to capture permalink , title and excerpt. Please have look @
    $param_arr = array('0'=>$permalink , '1'=>$title , '2'=>$excerpt );
    $arr = apply_filters('socialnetwork_links_change', $param_arr );
    $permalink = $arr[0];
    $title = $arr[1];
    $excerpt = $arr[2];

    which I have added after
    $rss = urlencode(get_bloginfo('ref_url'));
    @ line no 747 in sociable.php

    what it will do is, it will make available these variables to capture and change. Please add this in next release so that plugin can be use for new wordpress versions where functionality provided for custom post type and taxonomy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags