Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Team,

    We can reproduce the issue. When using OceanWP in addition to WPVC, if you change the name of the anchor tags on the accordion sections, it breaks the accordion – and though the viewport moves to the location of the anchor tag, it doesn’t appear in the address bar, nor does it expand the section.

    See here in this staging area: https://staging.elkrapids.org/wp56/_test-accordion-page/#beautification-commission

    Adding the anchor tag manually will reload the page with the section expanded.

    Thread Starter Legendary Lion

    (@legendary-lion)

    Solved.

    These items were categories, not pages.

    The resulting code works like a charm.

    <?php
    	if ( is_category( 'podcast' ) ) {
    	    // Display Podcast Specific Content
    	    echo get_post_meta(570, "Youtube Video", true);
    	    } else if ( is_category ('video') ){
    	    // This is Video
    	    echo get_post_meta(568, "Youtube Video", true);
    	} else if ( is_front_page () ){
    	    // This is the Home Page
    	    echo get_post_meta(550, "Youtube Video", true);
    	} else {
    		//Other Pages (Display Home Page Video)
    		echo get_post_meta(570, "Youtube Video", true);
    	}
    ?>

    Thanks for your attention and time!

    Thread Starter Legendary Lion

    (@legendary-lion)

    UPDATE:
    With the following code;
    The if is_front_page works only on the homepage
    The else statement is applied to all other pages

    <?php
    	if ( is_single( '24' ) ) {
    	    // This is Podcastwp_reset_query();
    	    echo get_post_meta(570, "Youtube Video", true);
    	    	} else if ( is_single ( '25' ) ){
    	    // This is Video
    	    echo get_post_meta(568, "Youtube Video", true);
    	} else if ( is_front_page ( '26' ) ){
    	    // This is the Home Page
    	    echo get_post_meta(550, "Youtube Video", true);
    	} else {
    		//Other Pages
    		echo '<h1>TESTING</h1>';
    	}
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)