Skip Navigation

[Resolved] What is wrong with html code?

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 17 replies, has 2 voices.

Last updated by matthiasV-2 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1932845

"Voorkeuren aanpassen" does not show up using this HTML code:

<h4 style="text-align: right;">[toolset-edit-post-link content_template_slug='template-that-contains-the-edit-voorkeuren-form' target='self']Voorkeuren aanpassen[/toolset-edit-post-link]</h4>

Page: hidden link

#1933855

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

Thank you for getting in touch.

Based on the code that you've pasted here it seems fine. However I will need to do some further checks to see why this isn't displaying.

Would you mind allowing me to have admin access to check on this one for you?

Thanks,
Shane

#1934173

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

As you've mentioned that I shouldn't make any changes to the live site, i'm not seeing the edit link added to the backend.
hidden link

Can you perhaps add it and then allow me to check what happens? From there I will check and if I see anything incorrect I will let you know before I do anything.

Thanks,
Shane

#1934203

This is the html code added to apply "voorkeuren aanpassen".

<h4 style="text-align: right;">[toolset-edit-post-link content_template_slug='template-that-contains-the-Edit-Voorkeuren-form' target='self']Voorkeuren aanpassen[/toolset-edit-post-link]</h4>

It's placed on the page just above "voorkeuren verwijderen".

#1935677

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

Perhaps I am missing something, when I checked on the page below.
hidden link

There is no html code on the backend that says

<h4 style="text-align: right;">[toolset-edit-post-link content_template_slug='template-that-contains-the-Edit-Voorkeuren-form' target='self']Voorkeuren aanpassen[/toolset-edit-post-link]</h4>

hidden link

Perhaps I'm looking at the wrong page? Can you verify for me on the backend and let me know the exact link or a screenshot ?

Thanks,
Shane

#1935775

If you go to the back-end of the page just above the button "voorkeuren verwijderen" (grid) there is a fields and text containing the html code (if you switch to html).

#1938179

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

So based on your instructions i've checked on this a bit further. The reason why the edit link isn't showing up is because the edit form is for a different post type that you're using the link for.

You edit form is for editing the Voorkeuren CPT which means unless you place the edit link shortcode on a Voorkeuren post type the link won't show up.

In order for the link to show up on this page you will need to create an edit page form.

Thanks,
Shane

#1938461

Apparently you didn't get my question. There is an edit voorkeuren post form ("voorkeuren aanpassen"): hidden link. The question is: what html code should I use to get it properly displayed (instead of the html code above)?

#1938589

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

That's correct there is an Edit Post Form on the page, however the Edit Form link below wont produce a result because of what I explained earlier. This is for linking to the Voorkeuren CPT, however you are adding the edit form link to the Page post type which wont work.

<h4 style="text-align: right;">[toolset-edit-post-link content_template_slug='template-that-contains-the-Edit-Voorkeuren-form' target='self']Voorkeuren aanpassen[/toolset-edit-post-link]</h4> wont p

If you add this to the template of a Voorkeuren Post Type then it will produce a result on that page, however on the Page post type it wont produce any output at all.

I hope this explains in a bit more details the issue at hand.

Thanks,
Shane

#1938617

Again, what edit form link WILL produce the required result?

#1938635

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

You will need to create an Edit form for the Pages post type then using the field and views block add the edit link to the page using the forms button on the fields and views block.

However this is assuming that it is the current page that you are on you want to edit. If it is a Post from the Voorkeuren post type then it work from here.

So creating an edit form and adding the link will allow you to edit this page.
hidden link

So to recap
1. Create an Edit form for the Page post type.
2. Add that edit form to a content template that you will create.
3. Go to the hidden link page and using the fields and views block click the Toolset forms button and add the edit link ensuring that you've selected the correct content template where you've added the edit form for the page.

Please let me know if i've misinterpreted this or if you're unclear of the instructions.

Thanks,
Shane

#1938701

The edit form for the page hidden link is already there. It is called 'voorkeuren aanpassen'. The content template is also there. It is called 'Template that contains the Edit Voorkeuren form'.

I then added a fields and text to the page hidden link above 'voorkeuren verwijderen' and inserted the below html code:

<h4 style="text-align: right;">[toolset-edit-post-link content_template_slug='template-that-contains-the-Edit-Voorkeuren-form' target='self']Voorkeuren aanpassen[/toolset-edit-post-link]</h4>

But the html code doesn't load the edit voorkeuren form. Now - again - my question is: what is the correct html code?

#1938709

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-02-08 at 4.50.04 PM.png
Screenshot 2021-02-08 at 4.54.57 PM.png

Hi Matthias,

The edit form for the current page has NOT been created. See My Screenshots.

If you're not using this form anywhere else then you can change the post type that it edits to Page and it should work. Otherwise you will need to create a new form to edit page as per my previous instructions.

Please let me know if the screenshots provided any clarity on the issue because nothing is wrong with the code, its the context in which you are using the code, where the form the post type and the form do not match up.

If after doing this and it still doesn't show up then we are looking at a different issue all together. Given that this is a live site I defer from making the changes myself.

Thanks,
Shane

#1939177

For the post forms voorkeuren toevoegen and voorkeuren aanpassen I changed the post type from voorkeuren to pages. Issue is not solved though.

#1939631

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthias,

Have a look at what I did here.
hidden link

If you look at the bottom of the page you will see the edit link

What I did was to create a new content template with a New Edit Page form that I created.
hidden link

This link below is for the Edit Page form.
hidden link

These are the exact instructions that I illustrated in my post below.
https://toolset.com/forums/topic/what-is-wrong-with-html-code/#post-1938635

Now the form allows you to edit this current page from the frontend. Please let me know if this is exactly what you wanted to achieve.

Thanks,
Shane