WordPress.org

Forums

Ultimate Post Type Manager
[resolved] Content not display after upgrade (12 posts)

  1. tonyallsopp
    Member
    Posted 3 years ago #

    Hi,

    I've just upgraded to 1.6, and now for some reason the content of my custom posts (with the exception of the title, meta and image) are not showing either in the archives or as single posts... can you help?

    Here is a link to the site that's being developed:

    http://79.170.40.237/oxfordjournal.co.uk/competitions/win-family-tickets-to-legoland/

    Thanks,

    Tony

  2. tonyallsopp
    Member
    Posted 3 years ago #

    The plugin is now also causing some kind of conflict (java script I guess), that has caused parts of my theme to break - for instance the tabbed box in the middle of the home page. I know it's this plugin because I've disabled all others and gone through re-activating them one by one.

  3. sapper15
    Member
    Posted 3 years ago #

    Yes - while this is an excellent plugin (I use it across a few sites and really like it), this recent update is absolutely untested and WILL break your site.

    The reason for the content error is a content filter that has been added to the "the_content" wordpress method. If you go to the plugin directory/index.php line 591 and comment out that line it will fix your content issue. Also, just comment out line 63 and 64 (this will stop the plugin's JS from loading - I've found it has conflicts as well).

    Now for the other JS error - if you go to the plugin folder/fieldTypes/class-gallery.php and comment out lines 79-86 and 90-94 that will fix your JS error. It will likely break the added Gallery functionality of the plugin, but it will stop breaking your site until the plugin author releases another patch :)

  4. tonyallsopp
    Member
    Posted 3 years ago #

    Thank you @sapper15 - that has solved it! Hopefully the dev will release a patch soon.

  5. jackdbernier
    Member
    Posted 3 years ago #

    I got the the same issue with the content.

    If you go in "settings -> Post type manager->Ultimate post type" you will notice a new a option called "Content detail" by default the value is null (or empty) but should be "[CONTENT]". To solve your issue without modifying the source code, you just have to change the value of content detail to "[CONTENT]" instead of ""

    Please Enter the default template for the content.Use the litrel [CONTENT] wherever you want to show the default content.Else use the Shortcodes for display of other fields.

    if ( !function_exists( 'the_content_manager' ) ) {function the_content_manager($content)
    {
    	global $post;
    	$post_type = get_post_type($post);
    
    	$xydac_cpts = get_option("xydac_cpt");
    	$con ="";
    	if(is_array($xydac_cpts))
    	{
    	foreach($xydac_cpts as $xydac_cpt)
    		if($xydac_cpt['name']==$post_type)
    		{
    			$con = $xydac_cpt['content_html'];
    			$val = preg_replace("/\[CONTENT]/", $content, $con);
    			return $val;
    		}
    	}
    	return $content;
    
    }}
    
    add_filter ('the_content','the_content_manager');
  6. XYDAC
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,
    Sorry guys about the content bug, update to 1.6.3 to fix it,

    Couldn't find the bugs relating to Javascript, can someone please most me a screenshot of error.

    Regards,
    -Xydac

  7. James Revillini
    Member
    Posted 3 years ago #

    There's possibly a regression bug with this ... I upgraded to 1.6.8 and content stopped displaying on the site. I removed each filter until I got to the_content_manager ... this was the one that was causing it.

    Additionally, part of my troubleshooting process was disabling and enabling all plugins. Unfortunately, in doing so, the plugin seems to have wiped out all my custom field data which was input using a control other than text input (i.e. radio buttons, checkboxes). I haven't looked into the DB to see if it is in there and just buried. I'll follow up.

    This is a fantastic plugin - just because careful with this latest release until we figure this out.

  8. James Revillini
    Member
    Posted 3 years ago #

    Something bad definitely happened to the data when I disabled and enabled this plugin. I'm filing a separate bug report because I don't *think* this happened at upgrade time, but not sure.

  9. James Revillini
    Member
    Posted 3 years ago #

    Incidentally, you can add this to all your templates right before the_content gets called until this issue is fixed, but only do this if you are willing to go back and UNDO it after the plugin is fixed.

    remove_filter('the_content', 'the_content_manager');

  10. XYDAC
    Member
    Plugin Author

    Posted 3 years ago #

    Then initial issue identified in this post had been already fixed. Please update regarding it.

    Regards,
    -Xydac

  11. James Revillini
    Member
    Posted 3 years ago #

    OK - I'll double check on a vanilla install.

  12. XYDAC
    Member
    Plugin Author

    Posted 3 years ago #

    I'll set this to resolved for now.:)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Post Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic