lukasdd
Forum Replies Created
-
Forum: Plugins
In reply to: [List category posts] ACF “Select field” label not appearing as it shouldI have the same problem
Forum: Plugins
In reply to: [List category posts] Customfields name or labelThank you very much! Everything worked out!
Forum: Plugins
In reply to: [List category posts] Customfields name or labelThank you!
But I’ve tried everything and nothing works.
I don’t know how to insert a label instead of a name in the right place.
If you know please help.Forum: Plugins
In reply to: [List category posts] Customfields name or label//Custom fields:
$lcp_display_output .= $this->get_custom_fields($post);
if ($field_object = get_field_object( ‘timing’, $post->ID ))
echo $field_object[‘label’];So he did everything, does not replace.
Outputs the title at the top of the block to a line.Forum: Plugins
In reply to: [List category posts] Customfields name or labelВаш собственный шаблон работает?
Я прочитал здесь , что вы должны создать папку с именем list-category-posts в wp-content/themes/your-theme-folder (а не в вашей дочерней теме, как я).The template works!
I don’t know where to put your code to make it work.
Maybe it needs to be changed?Forum: Plugins
In reply to: [List category posts] Customfields name or label`I think you can solve this bij making a custom-template. You have to put such a template in your childtheme-map in a submap called ‘list-category-posts’.
Copy the default-template in the custom-template (you can find the default-template in the plugin-editor: list-category-posts/templates/default.php) and make some changes like in my question.
On your page you put: [catlist name=”xxxxx” template=yyyyy]**yyyyy is the name of your custom template`
//Custom fields:
$lcp_display_output .= $this->get_custom_fields($field_object);
$field_object = get_field_object( ‘timing’, $post->ID );
echo $field_object[‘label’];I did everything as you said but it doesn’t work.
If it’s not difficult, could you send me a piece of the working code.
Thank you!Forum: Plugins
In reply to: [List category posts] Customfields name or labelI did not use this code. Just made sure the fieldname was the label I wanted.
Thanks for the answer!
It is a pity for me that this is a problem that I have not been able to solve yet.- This reply was modified 2 years, 1 month ago by lukasdd.
Forum: Plugins
In reply to: [List category posts] Customfields name or label`I’m using the default (classic) WP editor.
So in the backend I see the fieldlabel. In frontend I see the fieldname.Ofcourse I can use this in my template:
$field_object = get_field_object( ‘Met’, $post->ID );
echo $field_object[‘label’];
But I would prefer to get the label with the catlist-command.`inula (@janetb)
Could you tell me how you solved this issue?
Where to paste your code?
Thank you!- This reply was modified 2 years, 1 month ago by lukasdd.
Thanks! I figured it out myself. Everything is working!