Dyad image post format
-
Dear Support,
I’m using the Dyad theme, and there is a post which I would like to use the post format ‘image’ for.
When I clicked on ‘image’ and visit the page there is a error message called:
Fatal error: Can’t use function return value in write context in /home/tabitha-louise.nl/public_html/wp-content/themes/dyad-wpcom/template-parts/content-featured-img.php on line 22I head this problem earlier on the home page with the featured image header, but I already found out how to fix this. I only have no idea how to deal with this problem…
Because this template comes from wordpress.com I’m sure this is the right place to ask for some help.
The blog I need help with is: (visible only to logged in users)
-
The weird thing is, I also installed this theme on another website, and I don’t have any problems with the Image post format over there… It works fluently, but I want to let it work on my own website to…
-
Okay just to be a bit more clear:
I’m using the Dyad theme, and there is a post which I would like to use the post format ‘image’ for.
When I select ‘image’ in the format window, update the post, and visit the page there is a error message called:
Fatal error: Can't use function return value in write context in /home/tabitha-louise.nl/public_html/wp-content/themes/dyad-wpcom/template-parts/content-featured-img.php on line 22The weird thing is, I also installed the same theme on another website, and I don’t have any problems with the Image post format over there… It works fluently, but I want to let it work on my own website to.
I know you need to pick ‘image’ in stead of ‘standard’ in the format window. When I change the format back into ‘standard’ the error is gone, but then I got the lay-out with the picture in the left in stead of at the top.
The thing is, I would like to know how to fix this so I can create this:
http://lacapocuoca.at/2016/02/04/crostini_radicchio/In stead of this:
http://lacapocuoca.at/2016/02/25/mein-lcc-amaretti-schokokuechlein/I also asked on wordpress.com but they direct me to here…
The blog I need help with is tabitha-louise.nl.
-
Not sure if this is the full solution, but it seems like the get_bloginfo(‘description’) is able to be put in the if statement. I changed the code as follows and it seemed to start working for me…maybe this would work for you as well.
Changed:
<?php if( ! empty( get_bloginfo( ‘description’ ) ) ) { ?>To:
<?php
$header_text_value = get_bloginfo( ‘description’ );
if( ! empty( $header_text_value ) ) {
?>Now, I have not tested this thoroughly, but seems to have fixed that error for me.
Thanks & Good luck!
Dustin
http://www.coldsnaptech.com -
-
it work for me too and i add
<h1 class=”entry-title”>
<?php echo get_the_title($post->post_parent); ?>
</h1>
- The topic ‘Dyad image post format’ is closed to new replies.