Jump to content

mgason

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mgason's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks, I cleaned that up, I never really know when I do and do not need the php tags. PHP is not my forte!
  2. I may have sorted it, is this correct? Is it the best way? <div class="entry-content tec-event-entry"> <?php /** Get the "cft_tinymce_1" custom field */ $block_1 = get_custom_field('cft_tinymce_1'); if( $block_1 ) { ?> <?php echo $block_1; ?> <?php } else { ?> <?php the_content(); ?> <?php } ?> </div> <!-- End tec-event-entry -->
  3. Hi, I am no PHP expert. I can poke about, do a little cut and paste. Dreamweaver is telling me I have a syntax issue with my if statement. I have tried a few things without success. Dreamweaver says the error is on the else line, that may not be true. please show me what I am doing wrong. Thanks Mark <div class="entry-content tec-event-entry"> <?php /** Get the "cft_tinymce_1" custom field */ $block_1 = get_custom_field('cft_tinymce_1'); if( $block_1 ) { ?> <?php echo $block_1; ?> <?php } ?> <?php else { ?> <?php the_content(); ?> <?php } ?> </div> <!-- End tec-event-entry -->
  4. I know nothing about PHP. this code is supposed to create a countdown timer when used in a theme in wordpress. I need to use it in a php widget. The widget does not accept the short code PHP of []. It needs a proper <?php ?> format. I can not seem to guess what that is, hope someone can help The following is from the plugin page..... If you want to insert individual countdown timers, such as in posts or on pages, you can use the following shortcode: [fergcorp_cdt_single date=ENTER_DATE_HERE] Where "ENTER_DATE_HERE" uses PHP's strtotime function and will parse about any English textual datetime description. this code does work to return a list of timers when placed in the php sidebar widget. <li id='countdown'><h2>Countdown:</h2> <ul> <?php function_exists('fergcorp_countdownTimer')?fergcorp_countdownTimer():NULL; ?> </ul> </li>
  5. Hi I have a site at http://triviamundialista.com/ I do not know much about PHP, but can poke about and change things. I am trying to use the sharebar plugin which adds a floating "tweet this" etc bar. http://devgrow.com/sharebar-wordpress-plugin/ according to the posts adding <?php sharebar(); ?> to my php in my index.php etc will make the floating bar appear on all pages. I can not get it in the right place. No matter were I put it, it appears in the structure of the page, not floating. this is from the posts on the plugin site "For more complex post templates, I would suggest disabling ‘Auto’ mode in the plugin settings page and then manually add the <?php sharebar(); ?> and <?php sharebar_horizontal(); ?> to your template. That way you can place the sharebar in the wrapper for the entire page" and "If you’re talking about adding just one sharebar to the side of the main homepage (or elsewhere), that can be done by adding the sharebar code manually to the relevant template files (index.php for homepage, archive.php for archives, etc.)." desperate for some help. happy to upload the relevant php files if anyone can help Mark
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.