First of all I would like to point out that I really love this plugin. It works great for me – I'm just having a minor problem with the Description for each photo. Whenever I need to change the text (due to typing errors...), WordPress adds a <p>-tag. It doesn't matter if I do the changes in the photoQDescr-field or if I type the text in the regular textbox. This paragraph-tag leads to a different appearance and I want to avoid that.
Is there any easy solution for my problem?
I tried to uncheck the "embedding"-feature, but that didn't help. Maybe I have to use the freeform-option in the content preferences somehow?
problem with photoQDescr
(3 posts) (2 voices)-
Posted 2 years ago #
-
hi. thanks for your message. i'm glad you like the plugin. concerning your quetions: yes that's the standard wordpress formatting that is applied to posts. you could try whether the following works for you:
- open the file classes/PhotoQPhoto.php with a text editor
- look for the following function: syncPostUpdateData($data)
- find this line inside above function
$this->descr = apply_filters('the_content', $data['post_content']); - replace with
$this->descr = $data['post_content']; - save the file
what this does is shortcut the part where the standard wordpress formatting options are applied to the post content. i guess this solves your problem. maybe i should even make this the default. so please tell me whether it works for you or whether this created other problems. thanks.
Posted 2 years ago # -
Works like a charm! Thank you.
Posted 2 years ago #
Reply
You must log in to post.
not resolved