javinladish
Forum Replies Created
-
Forum: Plugins
In reply to: [WPSmartContracts] Collections Page Not Showing Items + Editing PermissionsI managed to fix the error by contacting my hosting provider.
They increased the memory limit and enabled cType extension as my PHP version is high.
Forum: Plugins
In reply to: [WPSmartContracts] Collections Page Not Showing Items + Editing PermissionsI see that the endpoint that is 500ing is at this page here: https://nfgs.xyz/wp-json/wpsc/v1/get-nft-by-id/10/2-4
I see on that page that it is giving a 404 error: “No route was found matching the URL and request method.”,”data”:{“status”:404}”
Then when I look at the demo website collection page:
https://demo.wpsmartcontracts.com/nft-collection/my-demo-collection/I see that the same resource loads the same 404 error:
https://demo.wpsmartcontracts.com/wp-json/wpsc/v1/get-nft-by-id/10/1-2-3-4-5-6-7Although the demo website is showing the same 404 error, it is able to show the NFTs on the collection page.
Very peculiar issue that I am still hoping to resolve.
Forum: Plugins
In reply to: [WPSmartContracts] Collections Page Not Showing Items + Editing PermissionsYou can see here as well, I have two NFTs (https://nfgs.xyz/nft/)
But on the collection page, no items show.
Forum: Plugins
In reply to: [WPSmartContracts] Collections Page Not Showing Items + Editing PermissionsEven with the default theme, still no items show on the collection page. (https://nfgs.xyz/nft-collection/ping-pong/)
Forum: Plugins
In reply to: [WPSmartContracts] Collections Page Not Showing Items + Editing PermissionsAbout #1: Yes I have minted multiple items, but no items show on the collection page. I think my theme is using another template for this page? How can I make it use the WPSmartContracts template?
About #2: I would like to make it so only the owner (whoever buys the NFT) can edit the NFT item. I think I will need to integrate a way to check if a wallet address owns the NFT token and then restrict/enable the page for the user based on that. Let me know if you have any ideas.
- This reply was modified 4 years, 8 months ago by javinladish.
- This reply was modified 4 years, 8 months ago by javinladish.
I fixed it! What worked was removing the quotes (“”) around the URL in the a href tag.
For some reason, quotes are being auto-applied to the URL, so it ended up doubling them in the output, thus creating the internal linking issue.
This also happens when I add https:// before the link. It still treats it as an internal link instead of an external link.
Hi KokkieH,
I added the HTML link inside the shortcode block like you have described. It now shows a link in my post, but the link is appended to the end of my blog URL (instead of just being the link by itself).
Here is a screenshot of the issue: https://i.imgur.com/oCnwML7.png
Is there any way I can solve this? Perhaps a php function? This isn’t happening when I put links in regular paragraphs; it only happens when it’s inside the shortcode block.
Forum: Fixing WordPress
In reply to: Categories don’t show unless two or more are selectedI ended up figuring out a way to hack around it.
I made a category called ‘Posts’ to assign to all posts (so there’s always two categories assigned to each post) and then hid it across the whole site using:
function the_category_filter($thelist,$separator=' ') { if(!defined('WP_ADMIN')) { //list the category names to exclude $exclude = array('Posts'); $cats = explode($separator,$thelist); $newlist = array(); foreach($cats as $cat) { $catname = trim(strip_tags($cat)); if(!in_array($catname,$exclude)) $newlist[] = $cat; } return implode($separator,$newlist); } else return $thelist; } add_filter('the_category','the_category_filter',10,2);So there’s still a bug, but this works great!
- This reply was modified 9 years, 3 months ago by javinladish.
- This reply was modified 9 years, 3 months ago by javinladish.
Forum: Fixing WordPress
In reply to: Categories don’t show unless two or more are selectedAfter deactivating all plugins, the problem still persists.
I can get it to show a single category only if that category is a subcategory.
So if ‘Diet’ is a subcategory of ‘Uncategorized’, then it shows up. But if ‘Diet’ is just a regular category, it requires me to select at least two (any) categories for it to show up.
- This reply was modified 9 years, 3 months ago by javinladish.