dojwebmaster
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Optimize HTML Code – Breaks SSL/HTTPSSince we switched to HTTPS our CDN url is showing as our main URL – WPengine must have masked it? Here is a path example to one of our images https://dojmt.gov/wp-content/uploads/human-trafficking1-300×200.jpg
So I used https://dojmt.gov/ as the Base URL but it didn’t do anything and I tried it also without a Base URL and still breaks SSL.
Anyway it could be a host issue – WPengine is assigning us a static IP and then reforcing HTTPS hopefully that will help – I update this post as I progress – thanks!!
Forum: Plugins
In reply to: [List Pages at Depth] WordPress 3.7 FixThanks Ben – did try this already no luck – sent you an e-mail – again much obliged amigo!!
Mucho gracias amigo, looks like I did get it to work… I think? Now with this new construct in the code, will it ONLY return PDF’s in the search?
It appears that what it did for me, meaning that I was only getting PDF’s to come back in my search’s but not Post or Page data?
My goal is to have Post, Page and File Attachments but to omit JPG and other image formats.
Karl, thanks a lot for posting this. Unfortunately I have not got the code statement you posted to work in my loop file. When I do a direct copy of your code and inputted it into my loop file – no matter where I put it I get a syntax error. I have copied some of my code below and was wondering if you could give me any recommendations?
Also, what if I wanted to concatenate Word and Excel files to appear?
<?php /* LOOP TO DISPLAY POSTS */ ?>
<?php
global $wp_query;
$args = array(‘post_type’ => array(‘post’, ‘departments’, ‘featuredemp’));
$args = array_merge( $args, array_filter( $wp_query->query_vars ) );
query_posts($args); ?>
<?php // NO POSTS TO DISPLAY? ?>
<?php if ( ! have_posts() ) : ?>
<p class=”intro”><?php echo __(‘Apologies, but no results were found for the requested archive.
Perhaps searching will help find a related post.’,’duotive’); ?><?php endif; ?>
<?php // HAVE POSTS TO DISPLAY? ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class=”post blog-classic”>
<h2>
<?php the_title(); ?>
</h2>
<?php if ( has_post_thumbnail() ): ?>
<?php $thumbnail_src = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>
” title=”<?php the_title();?>”>
<img src=”<?php echo get_bloginfo(‘template_directory’);?>/includes/timthumb.php?src=<?php echo $thumbnail_src; ?>&h=180&w=640&zc=1&q=100″ alt=”<?php the_title(); ?>” />
<?php endif; ?>
<?php if(is_search()): ?>
<?php the_excerpt(); ?>
<?php else: ?>
<?php the_content(”); ?>
” title=”<?php the_title();?>”><?php echo __(‘Read More »’,’duotive’); ?>
<?php endif; ?>
<div class=”post-meta”>
<span class=”post-date”><?php echo __(‘posted on ‘,’duotive’); ?><?php the_time(‘F’); echo ‘ ‘; the_time(‘jS’); echo ‘ ‘; the_time(‘Y’);?></span>
<?php if ( count( get_the_category() ) ) : ?>
<span class=”categories-link”>, <?php echo __(‘Categories:’,’duotive’).’ <span class=”title”>’.get_the_category_list( ‘, ‘ ).'</span>’; ?></span>
<?php endif; ?>
<?php $tags_list = get_the_tag_list( ”, ‘, ‘ ); ?>
<?php if ( $tags_list ): ?>
<span class=”tag-links”>
<?php echo __(‘Tags:’,’duotive’).’ <span class=”title”>’.$tags_list.'</span>’; ?>
</span>
<?php endif; ?>
<!– end of post meta –>
</div>
<!–end of blog-classic –>
</div>
<?php endwhile;?>
<?php if(function_exists(‘wp_pagenavi’)): ?>
<div id=”navigation”>
<?php wp_pagenavi();?>
</div>
<?php endif; ?>
Yes – I can also confirm this; when highlighting is enabled it FINDS the TAGS in my IMAGES and displays MARK-UP on the page next to the images – SEE CODE BELOW – NOTE BOLD areas are the mark-up being displayed on the screen that should be HIDDEN.
It also RENDERS the CSS – so if it finds a search-term in a H2 Title – it will NOT show as H2?
——————————————————————-
Driver Services”>
<img alt=”<span class=” src=”/wp-content/themes/duotive-three/includes/timthumb.php?src=/wp-content/uploads/2011/10/driverservices.jpg&h=180&w=640&zc=1&q=100″>
Driver Services” />
——————————————————————-