I’ve got an svg file for a hero image, and I want certain paths to be internal links. I’ve wrapped the paths in an anchor tag, and putting in static links works, but I’d like them to be dynamic so I can changed them in the wp admin. Is this possible? How can I send the permalink data to the
Tag: permalinks
clicking on a post link leads to a blank page in php wordpress
I have been trying to learn PHP, and I am stuck at one point. I created some posts and made them as links, but on clicking them, they lead me to a blank page. Here is the index.php code Here is the single.php code I changed the href value to another working link, and it was working pretty well, the
WordPress: Add directory to post slug with function
I want to add a /news/ before every post slug. Like this: example.com /news/ post-slug/ If I add the /news/ in the permalinks settings, every custom post type is broken after it. I tried to add the following to every register_post_type: But that doesn’t help. I also tried the code from here: Unfortunately that doesn’t work either. Is there any
Add permalink to product title in WooCommerce custom order history
I am using Show products name and quantity in a new column on Woocommerce My account Orders answer code to add an additional column to the Woocommerce My Account Order History page that displays the titles of items for the order. How would I make the code display the title as a hyperlink to the product page of the item
Combining multiple cart item permalink changes in WooCommerce
I would like to change the permalinks of my cart item using the WooCommerce framework. I have the following: function addCustomFieldToUrl_1($permaLink, $cart_item, $cartItemId){ …
Remove Category Base from WordPress Category URL
I fished around the internet for a solution to this, tried a plugin or two to remove the /category/ from wordpress url’s. While some of these plugins are good, the category link still display’s /…