Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1079350
    tabasko
    Participant

    Dear Support,

    I am using the plugin “Event planner”, which has a custom post type for events.
    As adviced by other posts in this forum, I created a child theme with a new single wp-single and content file for the new custom post type for which I just copied the original ones and adjusted links and names.
    However, in the custom post some php echos (from WPML and the Event planner plugin for example) do not show up and the title picture does not crop.
    I know you do not provide support on other plugins, but i thought this problem is more related to x than to the plugin.
    Do you have an idea what exactly happened?

    cheers,
    tabasko

    #1079351
    tabasko
    Participant
    This reply has been marked as private.
    #1079428
    Thai
    Moderator

    Hi Tabasko,

    I would like to check your website, but it’s under construction.

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1085141
    tabasko
    Participant
    This reply has been marked as private.
    #1086075
    Rue Nel
    Moderator

    Hello There,

    Could please post the contents of the single-epl_event.php file? We want to check what you have in there. If I may ask, what should be the correct output of this page? At this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thank you.

    #1086304
    tabasko
    Participant

    Hello Rue Nel,

    sorry for beeing unclear.

    In single-epl_event.php I adjusted this line from the normal single.php: <?php x_get_view( x_get_stack(), 'wp', 'single-epl_event' ); ?>
    In wp-single-epl_event.php this one: <?php x_get_view( 'ethos', 'content-epl_event', get_post_format() ); ?>
    content-epl_event.php is now identical to the normal content.php to make it simpler.

    I assumed that this should now look the same as a normal post, but you can see missing the category taxonomy, the paddings of the title and the language switcher on the top right. Some php echos seem not to work on this location.

    Thank you in advance and best regards,
    tabasko

    #1086305
    tabasko
    Participant
    This reply has been marked as private.
    #1086483
    Lely
    Moderator

    Hi Tabasko,

    Thank you for the links. For the spacing, please add this CSS:

    .single-epl_event .x-main .hentry .entry-featured {
        margin-bottom: 2.15em;
    }

    Regarding the missing category meta for the custom post type, it needs some customization. Please check this thread:https://community.theme.co/forums/topic/metadata-in-custom-post-type/ for some guide.

    Please also clarify which php echos is not working.

    Hope this helps.

    #1086823
    tabasko
    Participant

    Hello Lely,

    this helped a lot!

    The php echos from my plugins don’t work: <?php do_action('wpml_add_language_selector'); ?> from WPML for example,
    that I have included in the navbar (top right) on all other pages.
    And the following from the Event planner plugin itself: http://help.wpeventsplanner.com/customer/en/portal/articles/379174-template-tags
    They work at some places in the template and at others they don’t, which is very mysterious to me.

    Thank you so far and best regards,
    Tabasko

    #1087590
    Rad
    Moderator

    Hi there,

    Would you mind providing the exact file/template you’re applying this? I’ll check that on my local copy.

    Thanks!

    #1088151
    tabasko
    Participant
    This reply has been marked as private.
    #1088730
    Lely
    Moderator
    This reply has been marked as private.
    #1089164
    tabasko
    Participant
    This reply has been marked as private.
    #1089607
    Rue Nel
    Moderator
    This reply has been marked as private.
    #1089714
    tabasko
    Participant

    Hello Rue Nel,

    the issue is already solved!
    it was a problem with the plugin and not the theme.

    thank you a lot for your help!

    cheers,
    tabasko

  • <script> jQuery(function($){ $("#no-reply-1079350 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>