wpnewbie69
Forum Replies Created
-
Forum: Plugins
In reply to: [Archives Calendar Widget] Custom post types still don't show upPerfect. Got the new update and it’s working fine now!
Forum: Plugins
In reply to: [Archives Calendar Widget] Custom post types still don't show upAwesome! Mind sharing? ??
Forum: Plugins
In reply to: [Archives Calendar Widget] Custom post types still don't show upYes, that is where I inputted “post, podcasts”.
I noticed on your website that you got this issue fixed. How did you do it? I’m facing the same issue right now and there are a lot of postings about this issue but no definite answers.
Forum: Fixing WordPress
In reply to: Custom post type posts don't show in archive widgetI mean the 404 WordPress template, not the 404 that shows up in the browser. Doesn’t that mean that WordPress is grabbing the wrong template possibly because the month I clicked holds no posts?
Forum: Fixing WordPress
In reply to: Custom post type posts don't show in archive widgetI added that (also changed ‘videos’ to ‘podcasts’) and now, in the dropdown, the days/months that hold podcasts posts show up. However, when I click on those months, it takes me to the 404 template.
Same is happening here. Nothing is showing up in the html either.
Ok, never mind I figured that out too. It should be
if ( $prevthumbnail ) {
.Ok, I figured out that I can concatenate it like this:
echo '<img src="'.get_stylesheet_directory_uri().'/images/isa.jpg" alt="ISA" />';
But now I’m getting an undefined function error on this line:
if ( $prevthumbnail() ) {
Thanks, Evan. Just one question, how would I format this line? I’m linking to the image from a child theme but this line is giving out an error. I’m not too good with PHP and I’m sure I’m not allowed to open a php statement when one’s already open.
echo '<img src="<?php echo dirname( get_bloginfo('stylesheet_url') ); ?>/images/isa.jpg" alt="ISA">';
This is what was in the theme. How can I rework this to include your code?
<div id="next-prev-posts"> <?php $prevPost = get_previous_post(); $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(100,100) ); ?> <?php $nextPost = get_next_post(); $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(100,100) ); ?> <div class="inner"> <div class="nav-next"> <?php if ($nextPost) { ?> <?php next_post_link('%link',"$nextthumbnail", false); ?> <?php next_post_link('%link', '<span class="meta-nav">?</span> %title', false) ?> <?php } else { echo "<p>You're at the beginning!</p>"; } ?> </div> <div class="nav-previous"> <?php if ($prevPost) { ?> <?php previous_post_link('%link', '%title <span class="meta-nav">?</span>', false) ?> <?php previous_post_link('%link',"$prevthumbnail", false); ?> <?php } else { echo "<p>You're at the end!</p>"; } ?> </div> </div> </div>
Figured it out.
This:
$video_url = htmlspecialchars(get_post_meta(get_the_ID($latest_video_id), 'dt_video', true));
Should have been this:
$video_url = htmlspecialchars(get_post_meta($latest_video_id, 'dt_video', true));
Forum: Plugins
In reply to: [Latest Tweets Widget] Links don't showAh, I see. Ok, Tim. Thanks for taking the time to address the issue.
Forum: Plugins
In reply to: [Latest Tweets Widget] Links don't showAwesome, thank you!
Forum: Plugins
In reply to: [Latest Tweets Widget] Links don't showI just activated the twenty fourteen theme with only the Latest Tweet plugin activated and added:
<?php echo latest_tweets_render_html( 'ISATVOfficial', 1, true ); ?>
and I still get the same output…
You can see it on the site.