cleforweb
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Exclude Relationship field itemYes this is correct.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Exclude Relationship field itemThank you.
Maybe I will join Slack Chat.In the meantime I ended up with
[pods][pods name="hb_accommodation" template="Ex current" where="parent_house.id={@parent_house.ID}"][/pods]
as that is the only working combination showing all accommodtions per house – tested with all plugins disabled and base theme.Without nesting I get
Database Error; SQL: SELECT DISTINCT
t.* FROM
wp_postsAS
tLEFT JOIN
wp_podsrelAS
rel_parent_houseON
rel_parent_house.
field_id= 652 AND
rel_parent_house.
item_id=
t.
IDLEFT JOIN
wp_postsAS
parent_houseON
parent_house.
ID=
rel_parent_house.
related_item_idLEFT JOIN
wp_icl_translationsAS
wpml_translationsON
wpml_translations.
element_id=
t.
IDAND
wpml_translations.
element_type= 'post_hb_accommodation' AND
wpml_translations.
language_code= 'en' LEFT JOIN
wp_icl_languagesAS
wpml_languagesON
wpml_languages.
code=
wpml_translations.
language_codeAND
wpml_languages.
active= 1 WHERE ( (
parent_house.
id={@
parent_house.
id} ) AND (
t.
post_type= "hb_accommodation" ) AND (
wpml_languages.
codeIS NOT NULL ) AND (
t.
post_statusIN ( "publish" ) ) ) ORDER BY
t.
menu_order,
t.
post_title,
t.
post_dateLIMIT 0, 15; Response: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@
parent_house.
id} ) AND (
t.
post_type= "hb_accommodation" ) AND (
wpml’ at line 24`Also hb_accommodation is not Custom post type as I wrote in the first message but Post type extended.
Thank you.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Exclude Relationship field itemJust found out that shortcode entered to the post like this
[pods][pods name="hb_accommodation" template="Ex current" where="parent_house.id={@parent_house.ID}"][/pods]
is working so wp-config.php and functions.php are ok.
Still get an error with a second part of where statementAND ID NOT IN ({@ID})
So I want to exclude (hide) current post from the list.
Thank you.Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Exclude Relationship field itemThank you for answers and suggestions.
I added code to wp-config.php and functions.php as stated on suggested link.
Still no results (the same error). However when I enter code like this
[pods name=”accommodation” template=”Ex current” where=”parent_house.id=573″]
it is working (retrieving all accommodations for this house id). I did not entered second part of “where” statement because I didn’ know how to avoid brackets.
Also after your first answer I entered double brackets but as you suggested
AND ID NOT IN ({@ID})
Anyhow I seems that error occurs when using brackets other than [].
I double checked wp-config and functions code but still stuck with a same error.
Thank you.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Exclude Relationship field itemThank you.
Understood and tried this but got this error:
Database Error; SQL: SELECT DISTINCT
t
.* FROMwp_posts
ASt
LEFT JOINwp_icl_translations
ASwpml_translations
ONwpml_translations
.element_id
=t
.ID
ANDwpml_translations
.element_type
= ‘post_hb_accommodation’ ANDwpml_translations
.language_code
= ‘en’ LEFT JOINwp_icl_languages
ASwpml_languages
ONwpml_languages
.code
=wpml_translations
.language_code
ANDwpml_languages
.active
= 1 WHERE ( (related_house
.id
={@573} AND ID NOT IN ({@574}) ) AND (t
.post_type
= “hb_accommodation” ) AND (wpml_languages
.code
IS NOT NULL ) AND (t
.post_status
IN ( “publish” ) ) ) ORDER BYt
.menu_order
,t
.post_title
,t
.post_date
LIMIT 0, 15; Response: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘@573} AND ID NOT IN ({@574}) ) AND (t
.post_type
= “hb_accommodation” ) AND ‘ at line 16Forum: Plugins
In reply to: [YITH Infinite Scrolling] syntax error after updateSame problem here.
Solved by changing PHP version to 5.6
Regards.Forum: Plugins
In reply to: [Slick Slider] Custom slick-theme.cssOK. Thank you. This is a great plugin.
Forum: Plugins
In reply to: [Slick Slider] Custom slick-theme.cssI used code with wp_deregister_style… and this works. I did not add helper css because I am not sure how to do it. Anyway Slick working without it so thank you!
Forum: Plugins
In reply to: [Polylang] Translating custom field labelI find the solution here:
Is there any solution for this. I have the same problem.
Forum: Themes and Templates
In reply to: [Virtue] Virtue in multilanguage site with PolylangThanks. That helped me a lot. As a matter of fact I was created .po and .mo files with Codestyling Localization plugin. The problem was that my country code should be in two letters. First solution was to create .po file with a poedit. Second solution is to rename .po file after translate it with a Codestyling plugin. Third solution is to keep Codestyling files as they are and change Polylang setting languages>locale from xx to xx_XX (x represents country code you are working on), also rename a flag file in the Polylang flags folder.
Forum: Themes and Templates
In reply to: [Theme: Virtue] How to hide timestamp from Blog entryIt looks like you solve this. Can you explain how?
Thank you.Forum: Plugins
In reply to: [WP Simple Booking Calendar] Enable client (non-admin user) to edit calendarsJust noticed that users with the editor role also have access to the booking calendars.
Forum: Plugins
In reply to: [Easy Contact Forms] Can't reply to sender automaticallyJust checked Yahoo mail. Same situation. Replies work but every message sent with an easy contact form has a wordpress admin email in the “sent from field”. I removed “supeuser” email from users contact details, also changed “superuser” role to guest and… guess what I have now? – “Please log in” message which means not working plugin with all configurations and contact forms lost.
Forum: Plugins
In reply to: [Easy Contact Forms] Can't reply to sender automaticallyIt seems that this is a problem with Gmail additional accounts addresses. For some reason Gmail treats easy contact form like it was sent from the wordpress admin email. If that email is in Gmail additional accounts Gmail replies to “myself”. I removed that email from Gmail accounts and now replies working good but (always this but) if you view details of a received form in Gmail there is still wordpress admin email address in the “from” field. Recipient than think that this message was sent by a wordpress admin which is totally confused. And now I want to ask developers can this be resolved at least in pro version. I spent four hours to configure this plugin and now I think it is useless. Why? Because one hundred of my clients think that I sent them some enquiries which they treat like spam (or worst than this).