156 reputation
18
bio website
location
age
visits member for 1 year, 6 months
seen 2 days ago

Jun
5
comment Custom blog settings
Wow thanks for that
Jun
3
answered Custom blog settings
Jun
3
asked Custom blog settings
Apr
22
comment Wordpress REST endpoint with JSON for Mobile App integration
Thanks for the pointer. Maybe it could be authenticated in some way to avoid direct scraping? Although as you are saying its not seriously protecting against anything. (Search engines scrape anyway to index your blog).
Mar
1
comment Wordpress REST endpoint with JSON for Mobile App integration
I don't know if I am incorrect, but both seem to be targeted for posting/managing blog posts rather than plain retrieving information. Am I missing something? For instance, in the XML-RPC version simple operations like wp.getPost() require a username/password. I just want to develop a small app which displays pretty much the same articles on the blog, but formatted properly for it.
Mar
1
asked Wordpress REST endpoint with JSON for Mobile App integration
Feb
26
answered How can I add links to widget titles?
Jan
8
comment Removing the […] from the excerpt returned by get_the_excerpt() only in some places
Yes thats understood. So one would need to get the excerpt, and if its empty use the content and truncate it to the maximum.
Jan
2
comment Removing the […] from the excerpt returned by get_the_excerpt() only in some places
I have no problem with caveat 2 because I built the theme myself. I do have a problem with caveat 1 however, because my bloggers often don't put the 'more' separator in their post, which is often the case when the [...] appears. Maybe I can use the post's content in some way and simulate what get_the_excerpt() is doing, i.e. if $post->post_excerpt is an empty string I use the full content and truncate it myself to the maximum excerpt length? Where can I find all the attributes of the $post variable? And how can I get the maximum excerpt length parameter from wordpress with PHP?
Dec
30
revised Removing the […] from the excerpt returned by get_the_excerpt() only in some places
added 20 characters in body; edited title
Dec
30
comment Removing the […] from the excerpt returned by get_the_excerpt() only in some places
Yes, but that will also effect the main posts that get listed on the main index page, where I do want the more string to appear.
Dec
30
asked Removing the […] from the excerpt returned by get_the_excerpt() only in some places
Oct
21
comment Allowing post attachments without allowing to insert in text
In order to disable "Insert into post" look at my other question here: wordpress.stackexchange.com/questions/69776/…
Oct
21
accepted How to disable “insert into post” only when selecting the Featured Image?
Oct
21
comment How to disable “insert into post” only when selecting the Featured Image?
Included the solution I used based on your answer, still marking your answer as the right one though. Thanks.
Oct
21
revised How to disable “insert into post” only when selecting the Featured Image?
added final solution
Oct
21
comment How to disable “insert into post” only when selecting the Featured Image?
Well done! That was it... I didn't realise that, yes I was using admin. I commented out that line and it worked. The "Insert into post" button still appears but nothing happens when it is clicked. Ideally it is not shown, but your solution is good enough to work with. I applied the same concept to the get_media_item_args hook with a small modification and it worked and also hid the button.
Oct
20
awarded  Commentator
Oct
20
comment How to disable “insert into post” only when selecting the Featured Image?
It doesn't seem to have any effect on my installation (Wordpress 3.4.2). I put it in my theme's functions.php but I still could press 'Insert into post' when I clicked on 'Set Featured Image' and the image still went to the WYSIWYG editor of the post. Any idea what could be the reason?
Oct
19
comment How to disable “insert into post” only when selecting the Featured Image?
Thanks. And how do I know the post_type or restrict by post_type?