Skip Navigation

[Resolved] Split: Custom Post Types gone after updates – post type not working

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 0 voices.

Last updated by colinR-2 2 weeks, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2791152

OK. Thanks. I selected all the archives and that seems to do the trick. I didn't made any changes to that so not sure what happened.

I checked the site and everything loads well, except for post type Essays: hidden link
When selecting any Essay from the front page or the Essays page: hidden link
It loads the header and the essay title and the stalls.
Why would that be happening?

#2791158

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

After some debugging I foudn that the issue is from the following code that is added to your single post content template for your post type Essay:
=> hidden link

[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'machine-writing' )"]
  <div id="test" class="mw">
[/wpv-conditional]


[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'fictions present' )"]
  <div id="test" class="fp">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'first person' )"]
  <div id="test" class="fper">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'technocapitalism' )"]
  <div id="test" class="tc">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'writing (post)feminism' )"]
  <div id="test" class="wpf">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'electropoetics' )"]
  <div id="test" class="ep">
[/wpv-conditional]

    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'internet nation' )"]
  <div id="test" class="inat">
[/wpv-conditional]
    
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'end construction' )"]
  <div id="test" class="ec">
[/wpv-conditional]

    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'critical ecologies' )"]
  <div id="test" class="ce">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'webarts' )"]
  <div id="test" class="wa">
[/wpv-conditional]

[wpv-conditional if="('[wpv-view name='thread-text-only']' eq 'image + narrative' )"]
  <div id="test" class="imnat">
[/wpv-conditional]
    
[wpv-conditional if="( '[wpv-view name='thread-text-only']' eq 'music/sound/noise' )"]
  <div id="test" class="msn">
[/wpv-conditional]
    
[wpv-conditional if="( '[wpv-view name='thread-text-only']' eq 'writing under constraint' )"]
  <div id="test" class="wuc">
[/wpv-conditional]

   </div>

I'm not sure why you are using the view. If you can explain what is the exact requirement with the above conditional statement I may help you to correct it.

#2791217

Sure. This is code is to display a div of the Thread for the left sidebar of an essay. Threads are a Post Type that groups essays thematically. For example:
hidden link

On these Thread pages, you can see in the left sidebar all the colored Thread divs at once.

The code above checks the essay relationship (which Thread it is related to) and then displays the class of that Thread (the color) with the Thread names. An Essay displays only one of these.

Again, I am not sure what happened because this has been working fine for six years. But if it is unresolvable I can remove it. Would prefer not to.I just tried to comment out that code but it didn't seem to solve the load problem. I used <!-- -->.

#2791279

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I do not think you will require view here. Can you please check now:
- hidden link

I've adjusted the conditoinal shortcodes as given under with your content template:
=> hidden link

[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'machine-writing' )"]
  <div id="test" class="mw">
[/wpv-conditional]


[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'fictions present' )"]
  <div id="test" class="fp">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'first person' )"]
  <div id="test" class="fper">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'technocapitalism' )"]
  <div id="test" class="tc">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'writing (post)feminism' )"]
  <div id="test" class="wpf">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'electropoetics' )"]
  <div id="test" class="ep">
[/wpv-conditional]

    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'internet nation' )"]
  <div id="test" class="inat">
[/wpv-conditional]
    
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'end construction' )"]
  <div id="test" class="ec">
[/wpv-conditional]

    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'critical ecologies' )"]
  <div id="test" class="ce">
[/wpv-conditional]
    
[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'webarts' )"]
  <div id="test" class="wa">
[/wpv-conditional]

[wpv-conditional if="('[wpv-post-title item='@thread_essay.parent']' eq 'image + narrative' )"]
  <div id="test" class="imnat">
[/wpv-conditional]
    
[wpv-conditional if="( '[wpv-post-title item='@thread_essay.parent']' eq 'music/sound/noise' )"]
  <div id="test" class="msn">
[/wpv-conditional]
    
[wpv-conditional if="( '[wpv-post-title item='@thread_essay.parent']' eq 'writing under constraint' )"]
  <div id="test" class="wuc">
[/wpv-conditional]

   </div>
 

As you can see I've replaced the view shortcode in conditional statement with the following shorrtcode to get the related parent title.:

[wpv-post-title item='@thread_essay.parent']

However - I'm not sure but the sidebar does display but at bottom of the page - maybe you will have to adjust some HTML code added to your content template.

#2791354

Thanks very much, Minesh. There were a few essays that were nit set up properly, but removing the View did the trick. I am still curious what caused this and the Archives to stop working. Is it just the upgrade to new version of everything? I just want to avoid such issues in the future.

#2791514

Opened for remaining questions: I am still curious what caused this and the Archives to stop working. Is it just the upgrade to new version of everything? I just want to avoid such issues in the future.

#2791593

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

well - I'm not sure but could be due to WordPress or any other updates or anything else. However - I do not see any other customer reported such issue.

#2791688

OK. Thanks again for your help