Both your double and single quotes are not the correct kind in this block of code. Also, the taxonomy name is ‘colecciones’ with a small ‘c’, but you used ‘Coleccions’ with a capital ‘C’. The match is case sensitive. Thus your function code should be:
function show_product_colecciones(){
$collections = wp_get_post_terms( get_the_ID(), 'colecciones' );
$collection = array_pop($collections);
$collectionPg = get_page_by_title ( $collection->name, 'OBJECT', 'page' );
$collectionPgLink = get_permalink( $collectionPg->ID);
echo "<b>COLECCIÓN: </b><a href="https://wordpress.stackexchange.com/questions/289311/{$collectionPgLink}">{$collection->name}</a>", '<br />';
}
Related Posts:
- Add a class to links in the visual editor (how to get old dialog back)
- I want to remove the links from the term list returned by get_the_term_list
- Extract links from content
- Change header on pages displaying taxonomy items
- Multisite – Display different header content based on which site is accessed
- How to associate dynamic PHP page for chosen WordPress tag?
- Receiving Stripe Webhooks on a wordpress website
- What would be a PHP command to erase all posts from category X from the last month?
- Walker class: Problems with understanding how walk() method can be called without error
- How to Use the Function is_user_logged_in To Display Different Menus?
- Change comments form title on a page by page basis
- Add value to usermeta without removing previous values?
- Setting up the child theme so as to enable right-to-left WordPress?
- String replace WordPress Site Title
- How do I get taxonomy terms by ID in a specific order
- Type hinting and void return question
- Customized title tag for each page in pagination?
- Change links automatically to affiliate links
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How to break down importing of feeds
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- PHP can I add line numbers to file_get_contents()
- Multiple choice in a custom taxonomy
- Remove one value in dismissed_wp_pointers?
- Accessing data from a non-WP database/table within a page content
- wordpress count link clicks by ip address
- Selectbox in admin panel function linking to CSS
- Customising the search function?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Add New User, extra fields which are required?
- Customizer: active_callback and sanitize_callback incompatibility?
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- custom url rewrite for wordpress
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Menu jumping when calling it via PHP
- Output Video Download Link in template
- Modify custom field input data before creating a new post
- “operation successful” message
- Category title output before opening title tag
- Change order of custom submenu link in WP Admin?
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Create page template via functions.php?
- How to create a field in customize and show that in header.php?
- Hierarchical taxonomy list with modificated term links
- Exclude product attributes from taxonomy terms loop
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Delete or edit postmeta with specific meta_key?
- Update if post with specific title exists
- pass html code to worpdress
- Adding custom url to readmore link using get_permalink()
- Filter unique custom field value based on custom taxonomy category or other custom field
- How do I custom code the start page?
- Kohana Frontend, WordPress Backend
- is_user_logged_in returning nothing on custom page
- Customize field names in backend profile edit page through function.php [duplicate]
- how to add datas in taxonomy to post with wp_insert_post
- Hi need update in my terms for other taxonomy
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- Change permalink structure specific category
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- Create Columns with Custom Walker and CSS Classes
- Display acf taxonomy attachment
- Adding wp users ID into a link address from a DIVI modul
- How can I check that the acf field value is not a duplicate when adding a post?
- Adding an Anchor Link to a wordpress menu using WPBakery Page Builder
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Inserting a class on before_widget if checkbox is checked
- Add a new view on the Woocommerce account page
- How do I add a predefined class to a custom html element?
- How to identify which php file a plugin is using on page load?
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- How to add a full working piece of website already coded, to a large scale Website design project?
- Create custom admin page with custom text fields
- Remove node from multisites?
- custom field – changing an element or background of id div – different versions not working
- Custom SportsPress list
- How to get php file based on URL in WordPress
- How can I customize a WordPress theme before it’s downloaded?
- changing static link to relative link
- Display product attributes for current product
- Why isn’t my custom Javascript showing up in my custom template?
- How to display terms from two taxonomies in one php code?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- PHP call div with function
- Make first child link default instead of its parent
- Where can I find the code for the menu page meta boxes?
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Query specific posts per user selections from dropdown menus
- wp_head makes my custom page template not work in Customizer?
- category & sub category order issues in wordpress
- HTML in PHP problem [closed]
- PHP code for link with text
- Woocommerce linking variations
- How to continuously developing a WP site that is already deployed in production without damaging it during development
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- WordPress taxonomy and terms question
- How to limit number of posts in the certain category and exclude the oldest post automatically