Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
buenatag
tagDiv Member

Hi Lucian,

many thanks – works!

Just a minor one for non-coders like me:
should start with..
<?php $gueltig

Again, Thanks – great support
Christoph

buenatag
tagDiv Member

Update:
block does not work with WP native custom fields either
code – eg:
<?php $gueltig = get_post_meta( get_the_ID(), 'gueltig', true);
echo $gueltig; ?>
works perfectly well for single post templates & module templates but is not passed onto block.

buenatag
tagDiv Member

hope it would be that easy 🙂

buenatag
tagDiv Member

Hi Chris,

thought of that as well – many thanks! Unfortunately does not work but surprisingly breaks the module display…


@Lucian
: can you help

thanks
christoph

buenatag
tagDiv Member

Hi Lucian,

here is the modified code of td_module_6.php with 2 custom fields and 2 CSS selectors

<?php

class td_module_6 extends td_module {

function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}

function render() {
ob_start();
?>

<div class="<?php echo $this->get_module_classes();?>" <?php echo $this->get_item_scope();?>>

<?php echo $this->get_image('td_100x75');?>

<div class="item-details">

<span id="datfei"><?php the_field('datum_feiertag'); ?></span><br/><span id="gueltigkeit"><?php the_field('gueltigkeit'); ?></span>
<?php echo $this->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<div class="meta-info">
<?php if (td_util::get_option('tds_category_module_6') == 'yes') { echo $this->get_category(); }?>
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>

<?php //echo $this->get_comments();?>
</div>
</div>
<?php echo $this->get_item_scope_meta();?>
</div>

<?php return ob_get_clean();
}
}

here are 2 links:

this is a category page using the module 6 (working fine):

Module 6 page

this is a page using the block 7 in the sidebar (it would also not work if I add a VC block 7 in the content – already tried that) – you see that the CSS is there (black background) but no content…

block 7 page

regards
Christoph

Viewing 5 posts - 1 through 5 (of 5 total)