Support » Plugin: Explanatory Dictionary » Display synonyms and forms in dictionary page

Viewing 1 replies (of 1 total)
  • Hi) If you want to display synonyms in the dictionary page you must:

    1st – open
    – wp-contene/plugins/explanation-dictionary/views/explanation-dictionary.php

    2nd – find the code
    <span class=”explanatory-dictionary-entry-word”><?php echo $entry->word; ?></span>
    <span class=”explanatory-dictionary-entry-explanation”><?php echo $entry->explanation; ?></span>

    3rd – change this code to:

    <ul><li><span class="explanatory-dictionary-entry-word"><?php echo $entry->word; ?></span></br></li></ul>
    		<?php $synonyms_and_forms = maybe_unserialize( $entry->synonyms_and_forms ); ?>
    <?php if ( $synonyms_and_forms ) : ?>
    	||&nbsp Synonyms: <span class="explanatory-dictionary-entry-synonyms"><?php echo implode( ', ', $synonyms_and_forms ); ?></span></br>
    <?php else : ?>
    	<span>||&nbsp No synonyms</span>
    <?php endif; ?></br>
    			<span class="explanatory-dictionary-entry-explanation"><?php echo $entry->explanation; ?></span>

    If the word has no synonyms will displayed “No synonyms” and if the word have synonym will displayed your text.

    Example in my site: Medical Books 24

Viewing 1 replies (of 1 total)
  • The topic ‘Display synonyms and forms in dictionary page’ is closed to new replies.