magirland
Forum Replies Created
-
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Result list say "Search results for — " "I can modify but, sadly, not yet write PHP. I am using the Frontier theme and it seems to use the get_search_query in the Main Index Template file (index.php).
I can see that the terms I am using with WP Query Search Filter (age, type, location) on my website are (obviously) not referenced in the code:
<?php if ( is_category() || is_tag() || is_date() || is_search() ) : ?>
<div class=”archive-info”>
<h3 class=”archive-title”>
<?php
if ( is_search() )
printf( __(‘Search Results for – "<span>%s</span>"’, ‘frontier’), get_search_query() );
elseif ( is_day() )
printf( __(‘Date – <span>%s</span>’, ‘frontier’), get_the_date() );
elseif ( is_month() )
printf( __(‘Month – <span>%s</span>’, ‘frontier’), get_the_date( ‘F Y’ ) );
elseif ( is_year() )
printf( __(‘Year – <span>%s</span>’, ‘frontier’), get_the_date( ‘Y’ ) );
elseif ( is_category() || is_tag() )
echo ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’;
?>
</h3><?php if ( category_description() != ” ) : ?>
<div class=”archive-description”><?php echo category_description(); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>To extract the search terms from this URL http://520families.com/?unonce=c1440da974&uformid=98&s=uwpsfsearchtrg&taxo%5B0%5D%5Bname%5D=age&taxo%5B0%5D%5Bopt%5D=1&taxo%5B1%5D%5Bname%5D=type&taxo%5B1%5D%5Bopt%5D=1&taxo%5B2%5D%5Bname%5D=location&taxo%5B2%5D%5Bopt%5D=1
am I looking at extracting age, type, location? And putting them where?
Forum: Themes and Templates
In reply to: [Asteroid] file for default page templateI am using “Creating a Simple Event System” http://pippinsplugins.com/creating-a-simple-events-system-with-easy-content-types/
I am wondering which template to use and where to insert this code (the loop-single.php or the Full ( no sidebar ) page template:<?php get_template_part (‘content’, ‘events’); ?>
Thank you!
Forum: Themes and Templates
In reply to: [Asteroid] file for default page templateThank you– that worked! I’m trying to work with Easy Content Types with this new template.
Forum: Themes and Templates
In reply to: [Asteroid] file for default page templateActually, here is the correct link to the page that shows my new template: http://520families.com/test/
Thank you again.Forum: Themes and Templates
In reply to: [Asteroid] file for default page templateThank you! I did that as a test and created a template. My sidebar, however, is now in the main part of the page ( please see http://www.520families.com) and the text content for the page is below the sidebar.
Here is the code for my template file:<?php // Template Name: Camps ?>
<?php get_header(); ?><div id=”content-nosidebar”>
<?php do_action(‘ast_hook_before_content’); ?><!– Widgets: Before Content –>
<?php if ( is_active_sidebar(‘widgets_before_content’) ) : ?>
<div id=”widgets-wrap-before-content”>
<?php dynamic_sidebar(‘widgets_before_content’); ?>
</div>
<?php endif ; ?><?php get_sidebar(); ?>
<?php
the_post();
get_template_part( ‘loop’, ‘single’ );
?><?php do_action(‘ast_hook_after_content’); ?>
</div><?php get_footer(); ?>