Tag Info

New answers tagged

1

If you're just going to output your own data, there's no reason to wait for the main query to run. Hook parse_request and check if your page was requested and run your code there. function wpd_maybe_output_feed( $request ){ if( isset( $request->query_vars['pagename'] ) && 'gmailrss' == $request->query_vars['pagename'] ){ ...


0

Well, that was sutpid of me not to have seen this, but I just have to follow the tutorial and not use get_template_parts()! Moving on.


2

include_once(ABSPATH.WPINC.'/feed.php'); $rss = fetch_feed('http://gdata.youtube.com/feeds/base/users/silviavaldemoros/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile&max-results=50'); $maxitems = $rss->get_item_quantity(50); $rss_items = $rss->get_items(0, $maxitems); print_r($rss_items); Try ...


1

You are using the size parameter of wp_get_attachment_image_src in a wrong format. This parameter can be: A string: keyword of the image size; thumbnail, medium, large, full or any other custom size previously registered). A 2-items array representing the width and height; for example, array( 100, 100 ). So, you have to change this: $thumb = ...



Top 50 recent answers are included