@MarkKaplun it seems PHP < 7.0 will give you fatal error, if you create method name with reserved words. For example public function include(){} throws fatal error. PHP expects string after include keyword. lesson learned
Cheers. I tend to wait for the ..1 release normally regardless.
Okay so story time.
Client wanted me to make their top-bar and some banners sticky at the top + some other adjustments. One day job. Once finished, client asked their money back because apparently all of this could have been adjusted using the default theme preferences.
If i have a rotating disk in the x-y plane and i apply a force along the x-y plane in line with the center of mass of the disk , will the disk move along the direction of the force or along a different direction ? I am asking this in reference to the precession of a gyroscope. Thank you.
@toscho Your answer to customizing the output of the previous_post_link how would I check if your on say the first blog? because it is still displaying previous link even though I'm on the first blog wordpress.stackexchange.com/a/118719/85776
Yeah it's a single blog post template and I customized the output following what @toscho put in the answer. Say you have 2 blogs and you're on the first one you click next and you go to the next one but you can click next on that one as well but obviously you're one the last one so you shouldn't be able to click next - basically I want to hide it
Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/wp-e4k/wp-content/themes/e4k-theme/functions.php on line 118
Line 118: $url = get_permalink( $post->ID );
Modify toschos original filter and use get_adjacent_post() passing in previous = true or previous = false based on the current_filter() conditional.
This will get you your post object. IF get_adjacent_post() returns NULL or FALSE or some empty() value, then you can return false to your filter and the link will disappear.