theatereleven
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Have a form widget, but can't locate the widget in WP-AdminYeah, it isn’t under widgets. Finally found something – it’s hard coded into the page, but I can’t tell where the form is submitting to or anything. Really strange.
Forum: Fixing WordPress
In reply to: Custom home page. One sticky post. Four latest posts.Btw – for anyone wanting to see the exact code that worked for me based on the above, here it is:
<?php $sticky = get_option('sticky_posts'); $not_in = array(); if ( $sticky ) { $args = array( 'posts_per_page' => 1, 'ignore_sticky_posts' => 1, 'post__in' => $sticky, ); $sticky_posts = get_posts($args); if ($sticky_posts) { foreach ($sticky_posts as $post) { setup_postdata($post); $not_in[] = $post->ID; echo '<div class="home-sticky-post"><div class="home-secondary-title"><a href="<?php the_permalink() ?>" rel="bookmark">'; the_title(); echo '</a><div class="home-sticky-date">'; the_date(); echo ' by '; the_author(); echo '</div></div><div class="home-secondary-excerpt">'; the_excerpt(); echo '</div></div>'; } } } wp_reset_postdata(); ?> <?php $args = array( 'posts_per_page' => 3, 'order'=> 'ASC', 'orderby' => 'title', 'post__not_in' => $sticky ); $postslist = get_posts( $args ); foreach ( $postslist as $post ) : setup_postdata( $post ); ?> <div class="home-secondary-post"> <div class="home-secondary-title"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <div class="home-secondary-date"> <?php the_date(); ?> by <?php the_author(); ?></div> </div> <div class="home-secondary-excerpt"><?php the_excerpt(); ?></div> </div> <?php endforeach; wp_reset_postdata(); ?>
Forum: Fixing WordPress
In reply to: Custom home page. One sticky post. Four latest posts.Very cool – thank you for clearing the fog on this!
Forum: Plugins
In reply to: [Advanced Custom Fields: Limiter Field] What happens if plugin support ends?Dude….you’re right. I just tested it. Thanks man, this is perfect!
Forum: Plugins
In reply to: [WooCommerce] Place "Add to Cart" link next to custom post type.You know…found the answer.
This formatting worked:
<?php echo do_shortcode(‘[product id=”99″]’); ?>
Forum: Plugins
In reply to: [The Events Calendar] Can the month start with Sunday?Brilliant! As you can see, I’m also new at WordPress. Thanks Andy!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to add a specific page to search?Closing.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to add a specific page to search?Cool thanks. I’ve set it to visible, but it’s still not picking up the page with the custom post types – weird. It is picking up other pages and posts. I’ll keep playing with it.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to add a specific page to search?Somewhere I read something about putting this in my functions.php file to have ACF fields indexed:
add_filter('relevanssi_excerpt_content', 'excerpt_function', 10, 3); function excerpt_function($content, $post, $query) { $fields = array('oil_intro_text', 'oil_description_text', 'oil-segment_text', 'oil_directions_text', 'favorite-_oil_description', 'oil_intro_title', 'accessories_intro_text'); foreach($fields as $key => $field){ $field_value = get_post_meta($post->ID, $field, TRUE); $content .= "" . $field_title[$key] . "" . ( is_array($field_value) ? implode('', $field_value) : $field_value ); }
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to add a specific page to search?Would creating taxonomies for grouping the custom post types help? My problem lies in the fact that if I allow Relevanssi to index to posts, it then shows individual post types that only include an image (for example). I’m using ACF and those with custom post types.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to add a specific page to search?Thanks Mikko – so is there any way to do what I’m trying to do? Maybe with your licensed version? I want people who type in “Ford Mustang” to not only see my page about the car, but my page of “Favorite Cars” which is made of up custom post types tha then link to their respective pages.
Forum: Fixing WordPress
In reply to: Moved site from MAMP to VPS – htaccess problemsCopy that!
Forum: Fixing WordPress
In reply to: Use WP_Query to loop in blog posts on custom pageThanks man…using Roots.
Here’s the blog page. It’s printing, but shoving stuff outside of the page design. This doesn’t happen on other pages.
Forum: Fixing WordPress
In reply to: Moved site from MAMP to VPS – htaccess problemsIhor:
It was a database problem. I did a find and replace of the site name on the exported databse (SQL file) and that I found out is not a good idea.
So…I started over from scratch on the site. Kind of a pain, but it’s working now.
Thanks man!
Forum: Themes and Templates
In reply to: Basic Plugin & Theme Question – UnderscoresI’d love to do that – do my own 100%. Just don’t really know how.
I’m awesome at front end, but I don’t know PHP. So I think I’m screwed to using a theme.
Thanks for your help.
– kyler