- Where Developers Learn, Share, & Build Careers
I want to add a 'featured page' button / widget for a sidebar in WordPress which will show a thumbnail of the page good By the way the custom part of the page (I'm using)
I have got the task of working with the custom text widget, but this does not display the content, it only generates one from the main page of the page.
Anyone knows an easy way to do this? I was hoping for non-web designers to update this type of content.
You can easily get it by activating this plugin If you put your php code in the widget You can. This means that you can also insert your WP_QUERY, query_posts, or get_posts loop to get the desired page.
Go to your widget page Activate Text Widget and drag it into your widget area and paste it
is_pause ()): while ($ the_query-> is_pause ()): $ the_query-> The_post (); // Show thumbnails if (has_post_thumbnail ()): the_post_thumbnail (); end if; // show part-the_excerpt (); Endwhile; end if; Wp_reset_postdata (); ? & Gt;
Comments
Post a Comment