WordPress.org

Support

Support » Plugins and Hacks » WordPress MU Sitewide Tags Pages » [Plugin: WordPress MU Sitewide Tags Pages] Difficulty getting MU Multisite Tags to include custom fi

[Plugin: WordPress MU Sitewide Tags Pages] Difficulty getting MU Multisite Tags to include custom fi

  • I’m having difficulty getting MU Multisite Tags to copy/include the custom fields I’m using within my posts. I see that there is a field for adding “Post Meta” within SWT settings, but I’m not sure how I should enter the desired custom fields there?

    I’m also using the Custom Field Template plugin, and calling the custom fields individually (and conditionally) within my theme files (ex: single.php). For example:

    <p><?php $institution_values = get_post_meta($post->ID, 'institution', true);
    if ($institution_values == '')
    { ?>
    <?php } else { ?>
    <?php echo $institution_values; ?>
    <?php } ?></p>

    Note: With SWT plugins now installed, any information I enter into the custom fields within the write panel does not save either… in other words it goes away as soon as I publish or update the post. I’m guessing this is related to the abovementioned need to add these to the SWT settings?

    Any help here would be MUCH appreciated! Thanks in advance!

    http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ron Rennick

    @wpmuguru

    in other words it goes away as soon as I publish or update the post. I’m guessing this is related to the abovementioned need to add these to the SWT settings?

    Most likely the issue is that you have an error. You do not need to have anything in the SWT post meta settings for custom fields to save.

    For the example you showed above, I don’t see where you have used the custom fields template plugin. I’m not sure what that plugin does but get_post_meta is a core WP function.

    I see that there is a field for adding “Post Meta” within SWT settings, but I’m not sure how I should enter the desired custom fields there?

    For example, if you want custom fields institution & department to be copied with the post then add the following to the SWT settings post meta box

    institution
    department

    Ron, Thank you very much for your reply.

    I’m not sure what that plugin does but get_post_meta is a core WP function.

    The Custom Field Template “adds the default custom fields on the Write Post/Page”. Basically, you set up your desired custom fields via the plugin, name that template, and apply it to the post/page panel as desired.

    For example, if you want custom fields institution & department to be copied with the post then add the following to the SWT settings post meta box

    OK, that is the way that I added them to the post meta box, linting the meta keys/names as you’ve stated, with one per line, but no luck. Still none of it gets saved upon Update/Publish. The pasrt of the post that do get saved (and copied over from the subdomain to the main site) are the Title/Permalink, main content, and the meta info (labeled as “Filed under:…” and “Tagged with…”) appearing beneath each post.
    Any ideas? Thanks again!

    Ron,
    A clarification re my reply above: the parts of the post that ARE getting saved to the subdomain (and therefore also copied over to the main site) are those parts that are not custom fields originally created from within Custom Field Template settings….regardless of whether the custom fields are listed in the SWT settings Post Meta box or not.

    As a result, I’m led to believe that this is issue related to the interaction between SWT and CFT plugins. (Could it be filtering issue of some sort? ) Since I already have two subdomains filled with posts, I want to be able to preserve the custom fields and their respective data, all of which I’m trying to send to the main site…so I’m reluctant to disable the CFT plugin (and have my custom fields go away). I’m going nuts trying to figure this out.

    Thanks again for your help.

    Update: I found a solution to this issue, or at least as a workaround. The set of custom fields occurring within the write panel and associated with the template must be saved individually, prior to Update/Publish of the entire post, in order for the associated post meta to be copied. This did not occur to me as an available option b/c I had disabled the separate custom field Save button from within the CFT settings.

    While this isn’t an ideal solution, as it requires authors to take this additional imperative step, it seems to work just fine. Nonetheless, I believe this essentially a shortcoming of CFT, or perhasp the relationship between CFT and SWT, and should not discourage anyone from using SWT, as it’s a great plugin!

    Sidenote: Each of the posts in my current project are geo-tagged using GeoMashup. With SWT, I was able to copy that info over to the main site as well, simply by addding geo_latitude and geo_longitude within the Post Meta box in settings. Much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress MU Sitewide Tags Pages] Difficulty getting MU Multisite Tags to include custom fi’ is closed to new replies.
Skip to toolbar