Tag Info

New answers tagged

0

The function that parses the shortcode, do_shortcode is added as a filter on the_content by default, at priority 11. You can remove it using remove_filter: remove_filter( 'the_content', 'do_shortcode', 11 ); Call this right before you're actually using the_content, and add it afterwards (in the unlikely case that it's needed after that): remove_filter( ...


2

That option refers to show excerpt on rss/atom feeds, not to normal frontend archives. You can get that value using get_option( 'rss_use_excerpt' ); That is 1 if user choose "Summary", 0 if user choose "Full text".


0

You can use the_content filter to add content to a category. function my_category_content ($content) { global $post; if(is_single()) { if (in_category("My Category", $post->ID)) { $content .= 'Add something'; } return $content; } } add_filter('the_content', 'my_category_content'); ...


0

This should be simple enough with a filter on the_content. I don't quite know what "all the pages parent to my Entrepreneurship page" means but the following will add your string to the bottom of all "Page" post type pages that have parent equal 0-- that is, parent pages. You can tweak the if conditions to get the exact behavior you need. function ...


0

Since you know the page ID we can directly look page ID 267 - so let's skip the searching for an ID and jump to the comparison: You mentioned that you do not want it on the Entrepreneurship page, so lets only look for pages where the parent is ID 267 if($post->post_parent == 267) It looks like you've removed your shortcode, so let's make this more ...


1

It is your css. I went into the your CSS and for .content-area. I took out the float left and then went into line 753 and took out the display:table. I am not sure on this theme but if it is using tables I would change it all to div's .footer-sidebar::before, .footer-sidebar::after, .hentry::before, .hentry::after, .slider-direction-nav::before, ...



Top 50 recent answers are included