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?
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Create a hierarchical taxonomy list in WordPress
- Accessing data from a non-WP database/table within a page content
- WordPress blog post url on category page
- Changing layout with wp_customise
- WP dynamic featured image – Can’t get second featured image url
- wordpress count link clicks by ip address
- Converting HTML Template to WordPress Theme
- Extending the WP_Widget_Text class
- get_the_tags() not iterating through for/while loop, but will with foreach
- Selectbox in admin panel function linking to CSS
- Customising the search function?
- Can I install/embed WordPress on a ‘single page’?
- Add meta noindex to post if it has a specific taxonomy
- Loop through categories and display posts title under each dropdown
- How to check if a meta value has already been assigned to any user?
- How to hide products that do not have an image from a slider carousel for an ecommerce webpage?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Trying to build simple deposit code that hooks into woocommerce
- How to pick the default selected value in wordpress dropdown?
- Changes in permalink structure in WordPress and how to apply to in-site links
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Send an email to specific adress when button is clicked?
- Customizer: active_callback and sanitize_callback incompatibility?
- Saving and Restoring a Canvas on A Individual User Basis
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- WordPress admin pointers tour bug?
- custom url rewrite for wordpress
- Extend plugin Class through functions.php
- Displaying Hierarchical custom taxonomy
- How to add a do_action on refreshing of WP customizer?
- Customize position of social icons in upme plugin [closed]
- Weird 404 URL Problem – domain name being placed at end of urls
- How to get the value of input hidden html from text editor to custom page template?
- Get term siblings of current child taxonomy
- 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
- How to get post’s current parent term ID?
- Output Video Download Link in template
- Adding Taxonomy Image to taxonomy loop [closed]
- Modify custom field input data before creating a new post
- Output custom field value to post string
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Media Upload , file name changed automatically
- Replace shortcode in substring
- Custom posts in different columns style
- Need help enqueueing webfonts
- need help with existing code showing subpages
- register_taxonomy() take much queries
- How do I add a custom css to all posts without affecting homepage css? [closed]
- how to show only specific category for a template
- Redirect to another page using contact form 7? [closed]
- Custom Background by Page IDs
- Way to bulk make all my tags lowercase?
- Advanced Custom Fields not displaying
- How to get private property in parent class into extended class?
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Make Current/Active Page Number a Link (WP_LINK_PAGES)
- “operation successful” message
- Category title output before opening title tag
- How to get post permalink url without a href
- List taxonomy term slugs within shortcode (do_shortcode)
- Exclude posts with specific metadata from search?
- Change order of custom submenu link in WP Admin?
- Underscore – Self hosted fonts
- get_template_directory_uri() providing wrong path for img
- Copy taxonomy terms from one post to another programmatically
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Hook called before text widget save
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- Add data-id attribute to child page links
- Next post link on a bootstrap button
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Warning: Illegal string offset on theme options page [closed]
- Hide image if taxonomy term is empty
- Clickable image link sends people to wrong URL
- customize wordpress database error page
- Display Youtube Time Automate from Key
- Isotope Drop Down Categories Filter Function
- trouble with page_id & highlighting current page
- Echo title attribute php
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How to filter custom taxonomy term name, slug, and description?
- Create page template via functions.php?
- str_replace with the_content is not working
- How to create a field in customize and show that in header.php?
- Hierarchical taxonomy list with modificated term links