Forum Replies Created
-
AuthorPosts
-
so if I would want to place this code in the functions.php of a child-theme:
$value = get_field( "photographer" ); if( $value ) { echo wp_kses_post( $value ); } else { echo 'empty'; }
where would I have to put it in functions.php to be next to the author of a post? and why in functions.php if it should show up in every post?
yeah no, that is not what I am looking for. I don’t want to have a line with multiple authors, I want to specifically show, who did what in the article. Meaning: someone wrote it (author) and someone made the pictures (photographer). The person that provides the pictures is not an author, so this is why I don’t want to add the name as a 2nd author and confuse people thinking, they both wrote on that piece.
besides… I asked ACF and they said the don’t know where to put their code, because it is your template not theirs, so I would have to ask you guys where to put it in the template. Looks like I really have to put it as a textline in every article and link to the photographers teampage (where the article won’t be listet… this is so sad tbh)
May 20, 2024 at 8:52 pm in reply to: Standard-Template – with and without Avia Layout Architect #1444806When I open a new post, I can choose on the righthandside which template should be used for the post. If I choose “Standard-Template”, the header/footer etc. looks like it was defined in the theme options.
Standard Template
Preview
within postIf I want to make a template – let’s say a post for American Football – that contains blocks and placeholders, I would choose “New Template” – but then I have to make navigation and footer from scratch. And I cannot achieve the same look that it has with “Standard Template”, no matter how hard I try
new templateWhere do I find “Standard Template” to make a copy of it, so navigation/footer and the whole design look like “Standard Template” but with different blocks placed in every template I make for every category of posts we do?
March 6, 2024 at 1:30 pm in reply to: Standard-Template – with and without Avia Layout Architect #1436496Hi Rikard
And if I don’t use the layout builder – where are the standard-templates with the navigation etc. in it to make a copy of it that I configured within enfold? It’s all there when I use “standard”, but nothing, when I make a new one
Greetings,
MichelleThis reply has been marked as private.Hi Ismael
Yes, I was using the new block editor. When I switched to the WP Klassik-Editor the “expand”-Button appeared and with that the avia layout architect stayed on top (in fullscreen-mode).
For me it would be nice if the toolbar would be sticky on top, regardless if expanded or not. Drag’n’drop is easier when you don’t have to search for the spot where you want to place a new element. And with that Avia Layout Architect you are literally forced to do that with every element you want to use.
Thanks for your help, saves me a lot of time. And thanks for passing along, that in the new block editor the expand-button is missing :).
Hi Ismael
Unfortunately there is a Templates-Button (“Vorlagen”) only (?) I tried it in 2 different browser on Mac Big Sur (Chrome 92 and Firefox 92.) This is all I seeBefore scrolling with “upper toolbar” and “fullscreen mode” in the settings. No “expand”-button next to templates (“Vorlagen”). And… no other toolbar either to undo stuff for example
After scrolling with “upper toolbar” and “fullscreen mode” in the settings
Thanks – then I have to find out how to use these advanced custom fields and how they will show in the template. Sounds like I have to add code to the template though
-
AuthorPosts