kvnmcwebn
Forum Replies Created
-
I had thought that it was essential to use the strip tags because that was the first thing I tried. But i didn’t include the global in there, I defined it in the functions and it didn’t work. That works like a charm! Thanks a million.
Here is the page, the post in question is the top featured looking post just below the header..
Oh. I have been editing the loop in the plug in to add a thumbnail, simple enough because it’s a flexible and light little plugin . I was going to use metadata to add a permlink even but cant limit the word count for love nor money. Everything else has been working.
But yes if I use the more quick tag in the content it doesn’t work.. and the excerpt length is generated by the theme, there doesn’t seem to be anything that sets the length inside the plug in php file. Although I didn’t check the javascript. But I can control the excerpt length from the functions for the post that uses the plug in. It’s just that it’s a global thing and that post category that uses the plug in needs to have a different lenght excerpt.
Hi I’m using Responsive Sticky Slider with a custom theme.
Inside the sticky slider plugin this is what generates the post:<?php echo strip_tags(get_the_content()); ?>
it was:
<?php echo strip_tags(get_the_excerpt()); ?>
I really wish I could do something like this:
<?php echo strip_tags(get_the_content(100)); ?>
or
<?php echo strip_tags(get_the_excertp(100)); ?>
The other way I could do this is by somehow getting a different length for the excerpt needed in the featured category.
Forum: Fixing WordPress
In reply to: category permlinks when blog is not on the homepageHi good idea. Not sure how to do that. Here is the code that’s pulling the articles on the homepage. thanks.
<?php $featuredPosts = new WP_Query(); $featuredPosts->query('showposts=1&cat=19'); while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); ?> <h2 style="margin-top:-10px;"><a class="newsletterheader" href="category/avellana-blog/"><?php the_title(); ?></a></h2> <div class="storycontent"> <?php the_excerpt(); ?> </div> <?php endwhile; ?>
Forum: Plugins
In reply to: [plugin: BSW Gallery] Gallery landing page not found. Gallery posts okdoh sorry had to do with page slug
Forum: Fixing WordPress
In reply to: don't understand multiple sidebars -widget area not showing up.oh and here is the mega menu widget
if ( function_exists('register_sidebar') ){ register_sidebar(array( 'name' => 'my_mega_menu', 'before_widget' => '<div id="my-mega-menu-widget">', 'after_widget' => '</div>', 'before_title' => '', 'after_title' => '', )); }
Forum: Fixing WordPress
In reply to: custom menu duplicating items from one menu to the other.very nice thanks jay.
Forum: Fixing WordPress
In reply to: custom menu duplicating items from one menu to the other.oh and if I use:
<?php wp_nav_menu( array( 'container' =>'','fallback_cb' => '', 'depth' => 1, 'theme_location' => 'Footer-two' ) ); ?>
to call both items I just get an error. So there is something in the way that I’m calling them that I’m not getting right.
Forum: Fixing WordPress
In reply to: functions fatal erroah when I got back to my own computer and checked the functions file on the server it showed that the duplicate declaration had not been removed.
Forum: Plugins
In reply to: looking for a good gallery plug inWell I’ve tried out light box gallery, carousel and gallery.
So far I’m not 100 happy with any of them. Gallery comes closest but I can’t get titles or captions with it as far as I can see.Forum: Plugins
In reply to: looking for a good gallery plug inAlso I was looking at the portfolio post type.
https://www.ads-software.com/extend/plugins/portfolio-post-type/
Not sure what the best way to go is…
Forum: Fixing WordPress
In reply to: why does this meta info show up above my postsI just removed this:
<?php while (have_posts()) : the_post(); ?>
<?php post_class() ?> id=”post-<?php the_ID(); ?>”I’m not sure what that was in the tutorial for. Working now anyway.