20,999 reputation
31438
bio website xlino.com
location Reykjavik, Iceland
age
visits member for 2 years, 4 months
seen 3 hours ago

Developer from Iceland

Just another Earthling cruising the Milky Way galaxy

----- ]=|>


8h
comment How to solve suspected memory issue in custom WordPress loop?
Very nice approach! I assume you make a call to update_postmeta_cache( $post_ids ) because we don't get it from WP_Query using 'cache_results' as true or 'update_post_meta_cache' as true, when we set 'fields' as 'ids' (return too early for that)?
9h
comment How to solve suspected memory issue in custom WordPress loop?
Why would you ever need to visually dump 10.000 items to the user at once? Why not use paging? You might also have a PHP script timeout?
13h
comment How do I override the_excerpt so that it will display full content?
The method I mentioned is totally ignoring the_excerpt and just runs the_content() instead, so that's why I called it abusive ;-) It's like short circuiting the_excerpt(), by throwing out the_content() and returning null for the rest of the_excerpt filters. We also note that get_the_content() doesn't give the same output as the_content(). Just wanted to mention this, but I'm not recommending it ;-)
14h
revised How do I override the_excerpt so that it will display full content?
Added tag and formatted code.
14h
comment How do I override the_excerpt so that it will display full content?
It's tempting to use this abusive one-liner: add_filter( 'the_excerpt', 'the_content' ); to support all the content filters, since we don't need to return the value here ;-)
15h
comment How to add custom content (text/image) at start of content (IN content ie the same line)
So you mean how to inject text into the widget text or widget title? Since the original quesiton is regarding the post and not widget, I think it would be better served as a new question, with all relevant information (like HTML structure and PHP code etc) @JustinMunce
16h
answered Illegal string offset 'taxonomy' in
17h
reviewed Close How to customize a site hosted on wordpress.com locally
17h
reviewed Close 's' term in WP_Query extended class causes huge memory leak (268MB)
17h
reviewed Close How to create menu in Word Press 4.2.2?
17h
reviewed Close Dropdown Menu Widget Plugin Links not Clickable
17h
reviewed Close Wordpress Home page modification
17h
reviewed Close How can I show taxonomy's hierarchy on a dropdown?
1d
reviewed Approve Split gallery using <!--nextpage-->
1d
revised How to add custom content (text/image) at start of content (IN content ie the same line)
Added a new tag and removed the "Thanks" part since that's not usually included in the questions. You can revert this if you don't agree ;-)
1d
comment How to add custom content (text/image) at start of content (IN content ie the same line)
Glad to hear it worked for you. I updated it to work only for the main loop. @JustinMunce
1d
revised How to add custom content (text/image) at start of content (IN content ie the same line)
added 120 characters in body
1d
answered How to add custom content (text/image) at start of content (IN content ie the same line)
1d
comment How to add custom content (text/image) at start of content (IN content ie the same line)
So it's just a single <p> tag, that's preventing you from adding the extra words above the line containing <?php the_content();?>?
1d
comment How to add custom content (text/image) at start of content (IN content ie the same line)
I'm just wondering what kind of HTML is coming from your the_content();. For example if you check the HTML source of your page the relevant HTML might be like: <article><h1>Hello World</h1><div class="entry"><p>This is my first post</p></div></article> but your desired output might be: <article><h1>Hello World</h1><div class="entry"><p>HERE IS SOME CUSTOM TEXT This is my first post</p></div></article>. This kind of information will help. Please update your question with any extra information, thanks.