Toonces
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Links Page] Generating Screenshot…API Version 1 appears to be throwing up an error. V4 works fine.
I’m not sure if I want to get into explaining how to correct the issue nor am I sure if it’s my place to do so.
Out of pure curiosity, why did you go with the google api for small screenshots and the wordpress mshot for the larger? I genuinely don’t know so just trying to understand the reasoning behind it so I can better edumacate myself.
Forum: Plugins
In reply to: [List category posts] Seeing pages even though only posts selectedDo you ever get this solved?
I’m experiencing the same issue.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Is There A Way To Echo Each Post's Category?I found a different solution. Because I was also looking to make the category hyperlinked, I added the following code.
$categories = get_the_category(); if ( ! empty( $categories ) ) { $html .= '<a href="' . esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>'; }- This reply was modified 9 years, 4 months ago by Toonces. Reason: Formatting
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Is There A Way To Echo Each Post's Category?I’ve tried adding the above mentioned code to the functions.php, but it isn’t displaying the category for me. I’ve tried displaying it under that particular post’s title.
Just to be sure. I’m trying to show the category of the post in the list, or at least the first category that that post would belong to.