skotperez
Forum Replies Created
-
Hello, Paul,
thank you so much for this awesome solution and the quick reply. Is there any place where I can consult this documentation? If not, let me know if I can help with that.
Just a clarification to the previous message: I know that the where clause that can be defined in Relationship Options tab has effect in the front-end form too. But I need to define a dynamic where clause: I need the ID to be variable depending on the connected user.
Thank you for your answers @pdclark. I understand that the good way to customize a pods form is using JS. I’m closing this topic.
Hi @keraweb, thanks for the reply.
I’m trying to add custom CSS classes to input fields.
And more generally, I want to understand how these filters work, to produce forms that suit my needs.
I’ve just found the hook
pods_form_pre_field
inui/front/form.php
file that allows to run actions just before a form field is output.I’ve tried like this:
function myprefix_pods_form_label($field,$fields,$pod,$params) { $field['class'] .= ' form-label'; return $field; } add_action('pods_form_pre_field','myprefix_pods_form_label',10,4);
It works for filtering labels but I don’t find the way to filter input fields this way.
- This reply was modified 1 year, 11 months ago by skotperez.
Forum: Plugins
In reply to: [ActivityPub] Once installed nothing happenedForum: Plugins
In reply to: [ActivityPub] Once installed nothing happenedOpenSSL support is enabled in my hosting: phpinfo screenshot.
- This reply was modified 6 years ago by skotperez.
Forum: Plugins
In reply to: [ActivityPub] Once installed nothing happenedHi, first of all thanks for ActivityPub plugin!
i’ve installed it and i’ve the same problem: can’t find [email protected] on Mastodon.
I’ve checked [email protected] in webfinger and it is fine: https://client.webfinger.net/lookup?resource=vb%40voragine.net
The end point (https://voragine.net/.well-known/webfinger) throws some error message: “Missing parameter (s): resource”
I’ve another question: which contents will be published in Mastodon? Everything published in my site or just contents by vb user?
Forum: Plugins
In reply to: [Polylang] Custom post types author archives and PolylangHi there,
the snippet suggested by Chouby doesn’t work for me. Instead, i’ve used this one: https://www.ads-software.com/support/topic/theme-page-authorphp-returns-to-home-instead-of-other-language?replies=10#post-4982315.
I’ve also had to filter the author’s archive query to get posts from all custom post types.
I hope this helps someone.
AlfonsoForum: Fixing WordPress
In reply to: update in localhostHi, it is possible to update automatically in localhost, like in any other server.
You just need to set up the user, group and permissions of your WordPress folder to let the web server (let’s say Apache) to replace the files. Normally you have to assign the web server group to all the files and give write permission to the group. That should be enough. The output of “ls -l” in a UNIX server will look something like:
drwxrwx--- 8 your-user www-data 4096 sep 12 11:11 wp-content -rw-rw---- 1 your-user www-data 3897 sep 12 10:54 wp-config.php
Then, if you don’t want to be asked for FTP credentials, include the following line in wp-config.php:
define('FS_METHOD','direct');