Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #982291

    Hi, I have a Custom Post Type and for simplicity want my clients to use the Advanced Layout Builder when they create these posts. I made a single-team_members.php file in my Child Theme, but changes there have no effect. The body tag of the single post has the class single-team_members in it.

    I need to create a custom prev/next and also add a link to another page after the main content. When I try to add it as a code block in the ALB it doesn’t execute the wordpress functions like previous_post_link( ).

    Anything I add to the new single template isn’t working either, I tried to put it in there (I ever tried simply putting in some new plan text). So it’s clearly not using that template.
    When using the ALB for a single post, what template gets used?

    #983207

    Hey mickfollari,

    There is no template that you can duplicate and load from a child theme – at least yet.
    Our dev team is working to make something for that although.

    Best regards,
    Basilis

    #983846

    Thanks Basilis. As a follow-up, is there a hook after the ALB content I can target? I could insert my content that way if there is one.

    I may have to revert to a non-ALB method for this to help make that happen, and also because they may want these CPT’s to pop-up (I can write up the code for Magnific to do so) but I woudl strip out he header/footer and therefore need a template I can edit.

    #983866

    And, just a quick question again about executing wordpress functions in a code block in the ALB… does that work? it seems not to. Or is there a way to create a ‘hook’ in the ALB code block where I could then inject something from my funcitons.php?

    …also can you tell me how the existing ‘prev/next’ is inserted into the post? It seems to be nowhere in the index-loop or other templates so I’m assuming it’s some js.
    Thanks

    • This reply was modified 6 years, 5 months ago by mickfollari.
    #984125

    Hi mickfollari,

    Here is the function for the post navigation
    https://codex.wordpress.org/Next_and_Previous_Links

    What kind of hook do you want to use or what kind of code do you need to run?

    Best regards,
    Victoria

    #984260

    Hi Victoria
    I know how the next/prev work but I need to edit them and I can’t fine where they come from in this particular template.

    In the ALB if I could either use WordPress php functions (like the ones you mentioned) or create a hook on the page I could insert my custom prev next codes. I tried the WordPress php but it didn’t work for me. Thx

    #984855

    Hi,

    That does not exist on something that you can use to get it done.
    We do not have such options at our theme we are afraid.

    Best regards,
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.