How do I fix this issue?
]]>Why is this? I have checked the settings, deactivated and reactivated, removed form sidebar and added back to side bar but still the same.
]]>I want to display my page’s custom field “image1” on my sidebar randomly displaying only 5 number of pages excluding the page which is current. I’m weak in coding however I tried this code but it displays only one image of current page. Please guide me.
<?php
$id = get_the_id();
$image_id = get_post_meta($id, 'image1', true);
if($image_id !=''){
$attachment = wp_get_attachment_image_src($image_id, 'full', false); // it gives array having first parameter source, second parameter width and third parameter height with image sizes: thumbnail, medium, large and full.
if(count($attachment) > 0) {
?>
<li class="button"><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a>
<li class="dropdown active">
<a href="<?php the_permalink(); ?>">
<div class="destinations-grid">
<img src="<?php echo $attachment[0]; ?>" class="img-responsive" alt=""/>
</div>
<div class="destinations-grid-info">
<div class="destinations-hotel"> <p><?php echo get_the_content(); ?>. </p></div>
<div class="destinations-price"></div>
<div class="clearfix"> </div>
</div>
</a>
</li>
<?php
}
}
?>
]]>I have created a separate page for listing the old posts. The archives.php was created using the document https://codex.www.ads-software.com/Creating_an_Archive_Index. I created the “Archives” template as it is without making any changes to the code and applied it to the page. The page was created fine but with one issue.
As you can see on this link, https://www.srpr.org/blog/?page_id=37, the sidebar gets pushed below the content section. Why is the content section taking up all the width? Any ideas? Thanks in advance for your help.
]]>* Ideally the block should be of variable height to match the displayed height of the sidebar, which varies according to the amount of content on the page, and, presumably, the number of entries in the sidebar (as I am still working with test content I haven’t discovered that yet!).
Please can anyone help?
]]>All pages are set to use the default template. And before updates the content was displaying correctly from top of 2nd column.
Steve Drinkard
]]>1) Under “Appearance” > “Editor” gives a 500 server error, resource not found, why?
2) In the Sidebar, under Meta I can’t remove some of the menu items that I don’t want to show there. I just want Log in and rss.
3) Comments don’t seem to work. I can’t add one or see the form to edit it. I deleted the default comment (perhaps I shouldn’t have) and now the comment functionality seems to be gone.
Can anyone help me with this, or point me to the files I need to edit? Am going by the seat of my pants here, setting up/customizing WP the first time. Using a Windows server, don’t know php, but can understand the code somewhat. The URL in question is: https://northislandpartnership.ca/blog/ Thanks
]]>Does anyone have a fix for this?
]]>