304 reputation
139
bio website
location Bucharest, Romania
age 29
visits member for 2 years, 11 months
seen 3 hours ago

Dec
28
comment Add role that restricts user to post in specific category
Yes, that's correct. I modified the code again and I've included a function which will help you check if the current user has a specific role.
Dec
28
comment Add role that restricts user to post in specific category
I've updated the code with more explanations and I've replaced the check for category slug with a check for category ID.
Dec
28
comment Getting custom post type author and date published
That's the default function from underscore. Please add the code that you've added to the theme, like the pre_get_posts function or the loop you're using.
Dec
27
comment upload_async.php returns 500 error
I had a similar problem, when I was uploading large image files the server ran out of memory. Having more active plugins means less available RAM. Increase the available RAM or decrease the image size. Alternatively, you could try to calculate how much RAM you would need for your uploads.
Dec
27
comment Getting custom post type author and date published
Please include relevant code in your question otherwise it's hard to identify the problem.
Dec
22
comment Add custom WP_Query after the first 3 posts
You're right, thanks! Don't know how I didn't saw that.
Dec
19
comment Filter URL and shortcodes from the_excerpt
But it's not a custom shortcode: codex.wordpress.org/Audio_Shortcode
Dec
19
comment Filter URL and shortcodes from the_excerpt
I've updated the questions with a few examples, hope now it's a bit clearer what I'm looking for. Regarding any filters, as I said in the original question, except for the excerpt_more and excerpt_length I don't have any other filters on excerpt or content.
Dec
18
comment Filter URL and shortcodes from the_excerpt
Ok, so that's the normal behavior of the_excerpt: to show the URL. Is there any way I could hide the URLs? And no, I don't have any active filters.
Dec
18
comment Filter URL and shortcodes from the_excerpt
Yes, that is correct, but the post will still display the URL of the shortcode (if it's an youtube, mp3 or anything embeddable). If I put a filter to remove the URL from the_excerpt, then the post will show the shortcode. Maybe if I try a regex to remove the URLs and then also a strip_shortcodes...
May
10
comment What happens when permalink settings are updated?
The htaccess file has the correct lines. You can verify if the hosting company meets the requirements by doing a php_info(). However, most likely this issue is caused by a plugin. If you can't have the website offline, make a copy (search for Duplicator plugin) and work on a dev server.
Feb
4
comment Display Editable Text Above CPT Archive Listings
Thanks for the info! My CPTs were not public, so that's the reason I had problems. In the end I think I might replace this 'description' with a section in the Theme Options menu. I also want to let the user change some colors in these CPTs so I think this would be the best way.
Feb
4
comment Display Editable Text Above CPT Archive Listings
Sorry for 'hijacking' the discussion, but I had the same problem and I tried to use CTP-Description plugin but it's not working on all my CPTs. On some I have the description menu option and on some I don't. Is the plugin looking for something specific on a CPT?
Jul
31
comment Full sized images in RSS Feed
They are inline, inside each post - around 30-40 images in each post.
Jun
20
comment How to add 3 weeks to the_time() function
Thanks for helping!
Apr
24
comment Display post_object content using Advanced Custom Fields plugin
Thanks all for helping! I really don't know why, but it seems to be working with 'relationship' as a field-type instead of 'post-object'. I'll update the first post.
Apr
24
comment Display post_object content using Advanced Custom Fields plugin
I've made an edit to the original post, explaining more on my setup. I tried with get_field('testimonial') and I get the same result (nothing is being displayed). The code from above is in the main loop (but I also tried with it outside of the loop). It's the same. Should I be using 'relationship' instead of 'post_object'?
Feb
11
comment Comments numbering on multiple pages
I solved it in the meantime. Thanks for helping, like I said, the script worked great!
Feb
10
comment Comments numbering on multiple pages
Your script is working, i can see the counter in firebug but I think I have some problems with the CSS. The problem is that I can get the numbering to work correctly. This is the code I've used: .depth-1:before { content: "" counter(item, decimal) "."; counter-increment: item 1; }. As a result each comment has the number "1." in front.
Feb
3
comment Pagination problem after WP_Query with tag filtering
Thanks, I've included the paged query_var in the code but it's still not working [code updated above].