Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jon Henshaw

    (@jonhenshaw)

    @ggalow thanks for the quick fix! ??

    Thread Starter Jon Henshaw

    (@jonhenshaw)

    That’s good to know. It works for me and always has until I recently added the newsletter block after the ratings block. But based on what you’re saying, it shouldn’t be working. If you view the source of https://coywolf.reviews/software/memberful-review/ you’ll see that the Schema is fully populated by it. So I guess I’m utilizing a feature that was never intended to work but does under certain circumstances. I’ll probably keep using what appears to be a hack for the time being. But it looks like what I need to do is migrate the Schema directly into the block. Thanks for your help with this.

    Thread Starter Jon Henshaw

    (@jonhenshaw)

    ratings block

    <div class="ratingsummary">
    	<div class="rating">
    		<div><span><?php block_field( 'rating' ); ?></span></div>
    		<small><?php block_field( 'rating' ); ?> out of 5</small>
    	</div>
    	<div class="pros">
    		<h2>What I liked most</h2>
    		<?php block_field( 'strengths' ); ?>
    	</div>
    	<div class="cons">
    		<h2>Could be better</h2>
    		<?php block_field( 'shortcomings' ); ?>
    	</div>
    </div>

    newsletter block

    <aside class="newsletter">
    	<h2>Never miss an important story</h2>
    	<p>Receive a free weekly <a href="https://coywolf.email">web technology and digital marketing newsletter</a> that's privacy-first and has no ads or sponsors. You can unsubscribe anytime.</p>
    	<form class="js-cm-form" id="subForm" class="js-cm-form" action="https://www.createsend.com/t/subscribeerror?description=" method="post" data-id="5B5E7037DA78A748374AD499497E309ED7BF12DFA4DC856F6DEBF3FFADED8B095E2BDDA4552885D8295813BFC740708594060C41785EEB3CE0A93C4C69D1E6A8">
    		<p><label class="sc-gzVnrw dEVaGV">Email <span class="sc-dnqmqq iFTUZ">*</span></label><input autoComplete="Email" aria-label="Email" id="fieldEmail" placeholder="Enter email address" maxLength="200" name="cm-ojiydky-ojiydky" required type="email" class="js-cm-email-input qa-input-email sc-iwsKbI iMsgpL" /></p>
    		<p><button type="submit" class="js-cm-submit-button sc-jKJlTe iHrMUQ">Subscribe</button></p>
    	</form>
    </aside>
    <script async type="text/javascript" src="https://js.createsend1.com/javascript/copypastesubscribeformlogic.js"></script>

    Snippet of code from single.php template that inserts values from block

    <script defer type="application/ld+json">
    		{
    			"@context": "https://schema.org",
    			"@graph":[
    				{
    					"@context":"https://schema.org",
    					<?php if ( in_category( '1' ) ) : ?>"@type":"Product",<?php elseif ( in_category( '7' ) ) : ?>"@type":"SoftwareApplication",<?php elseif ( in_category( '6' ) ) : ?>"@type":"Book",<?php endif; ?>
    					"name":"<?php block_field( 'name', true ); ?>",
    					"description":"<?php echo get_the_excerpt(); ?>",
    					"image":
    					{
    						"@type": "ImageObject",
    					    "url": "<?php if ( has_post_thumbnail() ) { the_post_thumbnail_url( 'full' ); } else { ?><?php bloginfo('template_directory'); ?>/images/fallback-image.png<?php } ?>",
    					    "height": "600",
    					    "width": "1200"
    					},
    					<?php if ( in_category( '1' ) ) : ?>
    
    					"brand":
    					{
    						"@type":"Thing",
    						"name":"<?php block_field( 'brand', true ); ?>"
    					},
    
    					<?php elseif ( in_category( '7' ) ) : ?>
    
    					"operatingSystem":[<?php block_field( 'os', true ); ?>],
    					"applicationCategory":"<?php block_field( 'category', true ); ?>",					
    
    					<?php elseif ( in_category( '6' ) ) : ?>
    
    					"author":"<?php block_field( 'author', true ); ?>",
    					"copyrightYear":"<?php block_field( 'copyright', true ); ?>",
    					"genre":"<?php block_field( 'genre', true ); ?>",
    					"isbn":"<?php block_field( 'isbn', true ); ?>",
    					"id":"<?php block_field( 'id', true ); ?>",

    I sort of found an answer to your question here.

    ________________________________
    Lorelle VanFossen
    Posted October 1, 2006 at 1:34 pm

    “Jo, excellent question. The answer is…it depends. If you are using WordPress.com, they have been having trouble with future posts, and future post trackbacks and pings. As of this moment, it seems to be working, but it hasn’t been consistent for the past few months.”

    “For full version users, there have been a few glitches along the different versions, but for the most part, everything is held until it releases. The next version should have this fixed in cement, from what I’ve been told.”

Viewing 4 replies - 1 through 4 (of 4 total)