function

Custom Excerpt Function Help?

I am using a custom function to grab text from the content, so that I don’t have to fill in the excerpt field. I am mainly using this for custom post types. It is working, but I can’t seem to overwrite GP’s read more link. Function below: function get_excerpt(){ $excerpt = get_the_content(); $excerpt = preg_replace(” … Read more

How to add code and text/html before and after the category title

Add this code in your child theme functions.php to add code and/or text/html before and after the category title without editing the archive.php. Look at the code below to edit as you wish. // Add Shortcode for php code before category title function code_before_cat_title_custom_shortcode() { // start php code echo '</h1>'; echo '<p>Any php can … Read more