sacconi
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: nesting the sub-categoriesIt seems to me a difficult task, since at the moment I dont have so many destinations, I keep my current system. I’ll be back on it in some months. Now I’d give the priority to this other topic: “Adding a variable to some PHP code with gettext”
- This reply was modified 1 week ago by sacconi.
Forum: Developing with WordPress
In reply to: Adding a variable to some PHP code with gettextTo tell the truth I just used the code but I dont know how to use https://developer.www.ads-software.com/reference/functions/wp_kses/
Forum: Developing with WordPress
In reply to: Adding a variable to some PHP code with gettextI copied the code but it doesnt work https://test.sacconicase.com/forte-dei-marmi-appartamento-in-villa-per-6-persone-con-giardino/#titolo_listino_prezzi
maybe can you also advice me about the first step to do for this other topic? the title is “nesting the sub-categories”. Thank you
I see. And there isnt the possibility to tell the system: transform the italian slug into the german title with hyphens, so an italian slug, i.e.: “forte-dei-marmi-villa-con-ampio-giardino-per-6-persone/” can be translated into “Forte dei Marmi Villa mit gro?em Garten für 6 Personen” but with hyphens, so “Forte-dei-Marmi-Villa-mit-gro?em-Garten-für-6-Personen”. I should do it only if it’s usefull for the SEO, if the search engines evaluate in the same way an italian slug in a german page as if it was in german, so, I dont make any change
I dont have a “post_link” filter yet, I currently have 2 custom meta fields for the titles in german and in english: “title_de” and “title_en”…
Yes, I meant the ?the post’s slug and URL leads to the same single post page but currently I dont have a post_slug_$lang field somewhere (yet), I have a field for the title and use title_$lang. But this new code will replace the old one in all its parts?
I have a question, if I wanted to replace the title in the URL in the german end the english versions using the german and the english titles, there is something of the above code that I can keep? Maybe just putting the correct title in the replace funcion ? But if the code is not locale-based I probably have to change everything…My question is related also to the importance of having an optimized SEO for the foreigner versions of the site
- This reply was modified 1 week, 4 days ago by sacconi.
Forum: Developing with WordPress
In reply to: nesting the sub-categoriesIn my code category terms are ruled by $category inside a shortcode: https://pastebin.com/uHYfxULR , in this situation how can I insert html element tags? thank you
Forum: Developing with WordPress
In reply to: new link in admin dashboard opening a predefined emailIn my current website admin, I just do one click and I open the pre-composed email, even with the email address already written (every apartment is connected with an agency /author so that the system should understand the recipient email address), so I’d like to do the same…maybe as first step I could modify this? https://pastebin.com/wiQcL4wU and make a new email box open?
Forum: Developing with WordPress
In reply to: Indefinite variable PHP errorI still get an error message ??
ok, probably I forgot to delete a variable in the return ( $nopostoauto ) that had no longer reason to stay there, I’ll do some tests, sorry for the confusion
- This reply was modified 1 week, 6 days ago by sacconi.
Forum: Developing with WordPress
In reply to: printing a post meta in a funcionyes, I also eliminated “;” and kept only “,”, the site in this case doesn breack but I cant see either the meta value printed
Forum: Developing with WordPress
In reply to: speed up the opening of an elementThe code works! I wonder if there is a way to preload all the 12 apartment images that appear first when opening an archive page or the home page…
Forum: Developing with WordPress
In reply to: setting an ID as anchor in the right placeOK, but I see they are 2 different ID, how can I put insert both of them to replace this anchor?
$url = admin_url( '/post.php?post=' . $post->ID . '&action=edit#prezzo_settimana' );
the anchor to be replaced is #prezzo_settimana. it should be #input_prezzo_primo OR #input_prezzo_primo_dom .
Forum: Developing with WordPress
In reply to: printing a post meta in a funcionunlickily it breacks the site…