first of all you don’t need to echo the_content(); and the_excerpt();
both methods already echod, second simply put the more link using permalink after the_excerpt();
like this.
<?php // IN X USER GROUP
if($customgroup==1 || // Are they in the custom group?
$userinfo->usergroup == 66) { // or the admin of the website?
the_content();
} else { // They aren't in the custom group
global $more;
$more = 0;
the_content();
}
?>
Edited: added second param true
to the_content('', true)
this will cut off the content after <!--more-->
quicktag.
Related Posts:
- Change behavior of the tag
- How to put “Read more” link in Custom Excerpt inside p tag?
- Remove the More Link
- Child Theme’s Read More Text
- Featured image in menu wordpres
- Show content before more block
- Cannot figure out how to add a read more link to a manual excerpt. Please help
- Using tag to output text in Genesis?
- Are WordPress Heartbeat API ‘beats’ staggered or do they occur simultaneously for all users?
- How to correctly add Javascript in functions.php
- Genesis – Customize search form
- Set media upload attachment link to none and hide it in WP v3.5
- Why does this echo values in the wrong order?
- Print out WordPress user ID – two sites with same code but different output
- How to add default images into theme customizer image control?
- Add custom HTML to posts page
- How do I get a list of popular posts by views?
- Change title and meta description in included page (not template)
- Get first two paragraphs inside one div, and then get the rest under another?
- sidebar isn’t showing, what’s wrong w/ this code?
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- Page Reloads Before AJAX Request Finishes
- I can’t get my custom widget area to show on my WordPress site
- How to run PHP code in Text Widget with no plugin in WP 4.4
- How to only show page id as body class?
- Link for Most Recent Post
- wp-load Without Loading the plugins
- get post based on category chosen in drop down – The ajax method
- Is there an equivalent to WP_Error object I can return in the case of a successful REST request?
- Extending the WP_Widget_Text class
- Set the background to a default image if there isn’t a specified “featured image”
- WordPress Access allowed to fewer pages till user logs in
- How to pass aa JS variable to PHP?
- Display FNumber (aperture) as a number versus a fraction
- different id for same element visual composer [closed]
- user_profile_update_errors hook not executing
- Adding number to date not working [closed]
- Changing the default object embed sizes?
- How to exclude tags and categories from a function?
- Please help me with tag and php code [closed]
- Custom Theme’s “Preview Changes” Doesn’t Work for Previously Published Posts
- Display WordPress Post Content in 3 Columns
- WordPress Stripping Colons?
- Custom Field IF/ELSE PHP
- src script only works on home page?
- Run str_replace on title and save the output to a custom field
- Should I use WordPress to skin a database website?
- Adding a line of text to php code
- wp_delete_comment takes two tries to delete – then deletes all comments
- WordPress Custom SQL Table with UserID Filter for results
- Remove page title in product page using a function
- woocommerce specific quantities for product
- How to end a while loop when used in a fetch assoc function [closed]
- Menu Custom Data Attributes
- Pass return-path additional parameter in wp_mail
- How to get image from url from the database?
- Separate array output into a
- How to override a plugins script
- Why in this WordPress theme I can’t see the Main Menu?
- Front end file upload returning wrong attachment url
- Comparing Dates from custom field
- Taxonomy term description with style, only if the description exists?
- Page load timer?
- Restrict post to current user in postmeta
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- Database SQL query error
- How do I know if the user is a customer?
- WordPress custom php script to match standard page layout
- copy fields value to another field
- How can one safely add html code to a wordpress theme header file?
- Plugin won’t output characters with diacritics properly
- WooCommerce is_product_category() not working
- Get parent category name when only child category is applied to a product
- Updated Php version from 5.4 to 7.2 and getting “PHP installation missing the MySQL extension needed by WordPress”
- Where does php code to load data go?
- Adding product permalink on admin order page throwing error
- Modifying child theme’s header
- Before & After Content – After Content directly below Before Content when using require_once
- How to create dynamic templates?
- How to create an unordered list of images separate from the content
- Top Authors list by highest post views with Ajax pagination
- Gravity Forms on submit return value on same page
- How can i put php code on the wordpress page?
- Setting at job with shortcode not working
- Order by in foreach
- Splash pages on a high traffic site
- Query seems to be duplicated
- two sites, same code, different presentation
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Add Condition if WPBakery Page Builder Used on Page or Not
- Data inserted in database, but ajax calls error function
- How to align buttons properly [closed]
- index.php file keeps redirecting to a non-existent index.html file?
- How to pass parameter to another url?
- HTTP 500 Error after Creating Shortcode
- Show button in header when product custom field is not empty
- Why a class property becomes empty?
- WordPress PHP8 Critical Error in class-wp-widget.php
- How to get the last date updated of postmeta?