oltrecomics
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Multilingual text in functions.phpHi wph4, thanks for your help, but…
I would like to know:
1) if I have to create a new file .po in child theme and what is the code we I should put.
2) which path I should put, if ilfile functiosn.php is located in child theme:#: customizr-child/functions.php:769 <---????which path msgid "Disegni" msgstr "Drawings"3) if I can add code line on .po file in parent theme instead child theme and which path I should put
Forum: Themes and Templates
In reply to: [Customizr] Multilingual text in functions.phpIf there anyone can give me a hand?
Forum: Themes and Templates
In reply to: [Customizr] Multilingual text in functions.phpHi Michel, thanks for your help.
So, I’ve modified .po file in the parent template, while functions.php is present in the child theme.I honestly do not know how to create and to compile a .po file
Given that I understand very little of programming code, I’d like to know which codes I have to add, in what files and where.
Sorry for my bad English, I know little about this language.
Forum: Plugins
In reply to: [Polylang] Polylang and Advanced Custom FieldsCan someone help me?
Forum: Plugins
In reply to: [Polylang] Polylang and Advanced Custom FieldsHi Chouby,
unfortunately, I do not understand very well the PHP language.
Could you show me the lines of code that I have to enter and where do I put them, please?For example this:
<?php $terms = get_field('autori_opere'); if( $terms ): ?> <div class="box-tipo"><div class="box-campo">Autore: </div><div class="box-risultato"><ul class="box-voci"> <?php foreach( $terms as $term ): ?> <li><a href="<?php echo get_term_link( $term ); ?>"><?php echo $term->name; ?></a></li> <?php endforeach; ?></ul></div> </div> <?php endif; ?>Forum: Themes and Templates
In reply to: [Customizr] Add custom Field after contentThanks d4z_c0nf,
the problem was just that one.I thought I had figured out how to work the php language… obviously I did not understand anything. ๐
You’re always the number one.
Forum: Themes and Templates
In reply to: [Customizr] Add custom Field after contentUnfortunately it does not work yet.
This is all the code that I put in functions.php:
https://gist.github.com/anonymous/02c8687d64da14a57e24Something missing?
Forum: Themes and Templates
In reply to: [Customizr] Page content does not displayHi d4z_c0nf,
thank you so much, you’re the best!!Forum: Themes and Templates
In reply to: [Customizr] Page content does not displayLightbox not working ๐
Forum: Themes and Templates
In reply to: [Customizr] Page content does not displaySince there is no solution, I put again the following code:
add_action('__before_content','my_acf',100); function my_acf() { if ( ! is_single() ) return; //code here }Unfortunately, there is another problem …
Look at this post and click on the first image:
http://www.oltrezine.com/blog/batman-vita-dopo-la-morte-by-spider-ci/Forum: Themes and Templates
In reply to: [Customizr] Page content does not displayIt does not appear any error.
Non appare alcun errore.In poche parole: quella parte di codice, sopra menzionata, causa la scomparsa dei contenuti nelle pagine (post_type: page).
Usando la precedente porzione di codice:add_action('__before_content','my_acf',100); function my_acf() { if ( ! is_single() ) return; //code here }Le pagine funzionano bene.
Purtroppo a me serve che il gruppo dei field appaia nell’articolo.PS: Scusa se scrivo in italiano, ma รจ il modo migliore per farmi capire.
Forum: Themes and Templates
In reply to: [Customizr] Page content does not displayHi,
the developer of ACF wrote:
“Your code looks just fine.
However, please note that the get_field() function expected a second parameter which is the post id.
In cases where it is not set it takes the global post id.
Kindly investigate on that and let me know.”I noticed that the cause is the code which serves to place the custom fields in the articles:
https://gist.github.com/anonymous/1f10aa926d28a62a99a9#file-acf_the_content_filter-phpForum: Themes and Templates
In reply to: [Customizr] Page content does not displayIs there any solution?
Forum: Themes and Templates
In reply to: [Customizr] Page content does not displayI thought I had solved but the page is still blank.
If I remove the function mentioned above, it all works wonderfully.
There is some line of code that is not goodForum: Themes and Templates
In reply to: [Customizr] How can I show the fields of ACF?Ok, I will use the image custom field ๐
Grazie per il tuo grande aiuto ๐