tjakonen
Forum Replies Created
-
@amboutwe thank you for your reply. We’ll try to find some way to fix that.
Hi @amboutwe,
we are facing the same problem. We have a custom blog page and there is one post listed. Now the “archive” page has the listed post content as it’s meta description, even though the meta description is set correctly to the source code. The titles are showing as they should.
Here are some screenshots from results:
Page source
Google resultAnd sorry, the website is in finnish..
- This reply was modified 9 years, 5 months ago by tjakonen. Reason: Add comment about the website language
Forum: Fixing WordPress
In reply to: human time diff giving me the wrong timeHi @breathelifein,
are you using this on a basic page, not the blog page? If yes, I assume that your time is the exact time when your page is created.
I needed to do a post lift to front page and it also gave me a wrong time. I did a small change to function I’m using:
function kk_humantime( $id = '' ){ if( $id == '' ) { printf( __( '%s ago', 'your-text-domain' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); } else { printf( __( '%s ago', 'your-text-domain' ), human_time_diff( get_the_time( 'U', $id ), current_time( 'timestamp' ) ) ); } }After that I can call the function with a post id to get the right time.
Hope that helps! 🙂
@tsybyte You can use a standard query_posts function for that. Just add a meta key and orderby parameters to query. For example:
$args = array( 'posts_per_page' => 5, 'post_type' => 'post', 'meta_key' => '_liked', 'orderby' => 'meta_value_num'); query_posts( $args );Forum: Plugins
In reply to: [wpMandrill] wpmandrill no sending link to reset passwordHave you tried to check the ‘Replace all line feeds (“\n”) by
in the message body?’ box?Had the same problem once and checking that worked for me.