Users cant see image on index in Wordpress [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Friends,on the index page there is image for each tittle but these are not show.
this is web site : www.manisaihtiyac.com
I think there is a problem right this code :
<div class="yef_resim">
<a href="<?php the_permalink(); ?>">
<img src="<?php echo get_post_meta($post->ID, 'logo', true); ?>" border="0" />
</a>
</div>

Nothing is being returned by your function get_post_meta:
<a href="http://www.manisaihtiyac.com/?p=35">
<img src="" border="0">
...

Related

How to go to link with particular tab active? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Here Is the link that I have tried
<a href="<?php echo $this->config->item('base_url') . 'index.php/back-office-panel/User_master#tab4' ?>">
But its not working
suggest answers.
I want to go to edit of that particulate section which is tab format.
Simple pass the uri parameter 'index.php/back-office-panel/User_master/tab4'
<a href="<?php echo $this->config->item('base_url') . 'index.php/back-office-panel/User_master/tab4' ?>">
PHP: Check the condition and echo the active class in tab.
if(isset($this->uri->segment(3)) && $this->uri->segment(3)=='tab4'){
echo 'active';
}

how to add a logo on custom wordpress theme [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm building a WordPress theme from scratch at the moment and I seem to be stuck on trying to add a logo to the top left corner of the page where you would normally see the title of the page.
<h1>
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a
</h1>
<div class="site-description">
<h3>
<?php echo html_entity_decode(get_bloginfo('description')); ?>
</h3>
</div>`
So instead of the h1 tag there, I would like an image that will allow the user to return to the homepage. Also would I need to save the image in a specific folder ?
Please help and thank you in advance !
try this
<img src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" />
<div class="site-description">
<h3>
<?php echo html_entity_decode(get_bloginfo('description')); ?>
</h3>
</div>
assuming that image is in the images folder of template directory with file name logo.jpg
Use
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?>
<img src="image.jpg" width="32" height="32">
</a>
instead of
<h1>
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a
</h1>
Working well for me
See the image http://i.stack.imgur.com/Vs23W.jpg

Basic PHP syntax for editing a Wordpress social sharing plugin [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to edit a social sharing plugin, to change the link/text show in the popups for twitter, etc..
Basically when it clicks to share on Twitter, it displays the page title and current URL on a thank you page, I want to customize it to display certain text and a different URL. Tried changing the &url=<?php echo $url; ?> part to &url=<?php http://www.urltext.com; ?> for example but doesn't work, how can I edit this so the syntax is proper?
case 'twitter':
?><a rel="external nofollow" class="ss-twitter" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; ?><?php if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank"><span class="ss-icon-twitter"></span><?php echo $twitter_text; ?></a> <?php
break;
The syntax is incorrect. You'll want to use:
&url=<?php echo 'http://www.urltext.com'; ?>
The url is a string; so you need to echo it as a string.

QR Code wordpress generate on page [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
i'm trying to add a QR to each of my sites with this code..
<img alt="QR code" src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=L|4&chl=<?php the_permalink(); ?>" width="150" height="150" />
but when i use a QR read on the code that it generate i only getting this
<?php the_permalink(); ?>
on the screen
someone how can help ?
PHP can't process the code since it's encoded.
Try:
<img alt="QR code" src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=L|4&chl=<?php echo urlencode(get_permalink()); ?>" width="150" height="150" />

PHP images not displaying. Works in HTML [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
So I'm building a website and I'm attempting to reuse code for a scrolling photo banner.
I can mock-up everything pretty well within a strict html page. So I decided to move everything over to PHP to help make things more efficient and with the intent of eventually using MySQL in other content on the site. However, after I created my functions and began to plug everything in the photo banner disappeared. Everything else including the CSS displays beautifully. I went so far as to remove the CSS from the page to see if that was the problem. Unfortunately the images still refuse to show up. It was a direct copy->paste from the working HTML document so I'm not totally sure why the photos for the banner aren't appearing. Any advice or help would be great. Here's the code:
<html>
<style>
#import "honeysstyle.css";
</style>
<div id="container">
<div class="photobanner">
<img class="first" src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image2.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image3.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image4.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image5.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image2.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image3.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image4.jpg" alt="">
</div>
</div>
<?php
require( 'function.php' );
draw_titlebar();
draw_navigation();
?>
</html>
image path should be like this
<img src="http://localhost/Honeys Project/honeys/Image2.jpg" alt="">
change
<img class="first" src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
to
<img class="first" src="honeys/Image1.jpg" alt="">

Categories