I have a "Related Articles" view block that is in use on the site, and it functions fine. The site's original dev team configured everything through templates, but the code is placed in the "Article" template properly, and it all is well. This is a standard Related Articles block that uses the contextual filter "Content: Has taxonomy term ID" to find other nodes of Article type with the same taxonomy terms.
I have a problem, though, creating a similar block for a recently created content type ("News"). This node type's display is configured through Panels, though I'm not sure if that's what's causing the issue. I cloned the original block and altered the (non-contextual) filter to select content based on whether the content type is either Article or News (the original does only Article). Everything else is the same, including the contextual filters. When I place this block in the News panel, I get no results in the block (I've double-checked to make sure I'm using terms that exist on other articles).
I'm sure there are a number of things that could be causing the issue, but I don't know where to look. Can you offer me any guidance?
Thank you.
EDIT:
Here is their php code. I'm not proficient in php, but this looks pretty barebones to me.
<?php print '<div class="contextual-links-region panel-pane pane-views pane-slideshow-displays contextual-links-region fusion-block-title-gray-text-red clear"><h2 class="pane-title block-title">Related Stories</h2><div class="pane-content content">' . views_embed_view('related_stories', 'block') . '</div></div>'; ?>
EDIT 2:
I have tried placing the following php into the panel:
<?php
$node = menu_get_object();
if (is_object($node)) {
$tid = $node->field_article_tags['und'][0]['value'];
$output = views_embed_view('related_articles_for_news_', 'block', $tid);
}
echo $output;
?>
Still no luck. Everything looks correct to me. The URL on the view as I edit it is:
admin/structure/views/view/related_articles_for_news_/edit
and this is the only display in the View. The advanced settings say that the machine name is "block", and I confirmed that field_article_tags is correct.
Additionally, I accidentally left off the trailing underscore in the view title originally, and, of course, that did not work either.
Any thoughts as to where I might be going wrong?
Thanks again.