duncmorley
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Secondary HTML Content] Add plgin to custom post typeAhhhh nice work. It has added the box fine! Thanks, will test it out this afternoon.
Forum: Plugins
In reply to: [Plugin: Secondary HTML Content] Add plgin to custom post typeI did see this article prior to posting. Unfortunately, this article refers to moving the secondary html block from ‘Page’ to CPT whereas I require the secondary HTML block to appear on both.
Forum: Plugins
In reply to: taxonomy permalinksI worked out that having a page called taxonomy-{taxonomy name}.php in your theme folder works for that.
Actually, looking at it now, I ideally don’t want it to say clients in the URL at all. Just ‘portfolio/client-name’. But changing the slug to portfolio gives me a 404 error ??
Forum: Plugins
In reply to: taxonomy permalinksAlso, when clicking on the client name, I want it to go to it’s own templated archive page. At the minute it uses the default blog archive page. Any ideas on how to make it use it’s own?
Forum: Plugins
In reply to: taxonomy permalinksNot sure if I completely understand what you mean by:
Use a combination of the args to achieve /portfolio/clients/client-name
What args should I use to achieve this?
Forum: Plugins
In reply to: Breadcrumb NavXT plugin categoriesThat’s awesome. Thanks for that. On a unrelated issue to the NavXT plugin, the custom post type for premium always prefixes the article URL with /premium/ which is what I want. The normal blog posts don’t. Any idea how to achieve this without changing the permalink structure to /blog/ in the wordpress settings (as this would get applied to the premium posts as well)?
Forum: Plugins
In reply to: Breadcrumb NavXT plugin categoriesI have created a test site at: https://demo.duncanmorley.co.uk/
You can see from this link what I am experiencing with the URL’s & breadcrumbs. Very frustrating.
Please feel free to look at the admin to see if everything is set up correctly.
User: admin
Pass: adminForum: Plugins
In reply to: Breadcrumb NavXT plugin categoriesI’ve actually just installed a plugin called “Custom Post Type UI”. Looks like this may be the answer.
I guess I use the posts just for the “normal posts” and create a custom post type for the “premium content”.
Where I get a little unstuck is how to display the “normal posts” and “premium posts” on the front end.
Forum: Plugins
In reply to: Breadcrumb NavXT plugin categoriesThe main reason for doing it the way I am is that I have 2 types of blog post. Normal posts (for everyone) and Premium posts (restricted to subscribers). I also needed to URL’s set up in a particluar way. See the example below:
Displaying posts from that category
https://www.domain.co.uk/blog/
https://www.domain.co.uk/premium/Single posts from that category
https://www.domain.co.uk/blog/post-name/
https://www.domain.co.uk/premium/post-name/I am not too familar with custom taxonomies. I’m not sure how else to achieve the above other than using categories to assign my posts. I am up for a better, more efficient solution as I have been tearing my hair out to get to where I have. Any suggestions are very welcome.
Forum: Plugins
In reply to: Change category base on multiple categoriesOr remove child (nested categories) form the permalink strcture??
Forum: Plugins
In reply to: Change category base on multiple categoriesOr something else I thought of this morning. Could something be written in the .htaccess file to add the parent category to the beginning of the permalink?
Forum: Plugins
In reply to: Blog URL'sJust figured this one out as well.
1. Set the custom structure to: /blog/%year%/%monthnum%/%postname%/
2. Create a category called “Blog”. Add any other categories you wish and make them a child of “Blog”
3. Assign your posts to as many categories as you want always making sure that “Blog” category is selected also.
4. Withinn your custom menu, add the category of “Blog”
5. Download, install & activate a plugin called “FV Top Level Categories” (3.1) or “Top Level categories” (3 and below). Or alternatively, create a function that removes the top level category.
And you are done. Clicking on the nav menu called “Blog” will take you posts homepage:
https://www.domain.co.uk/blog/The post page will be structured as:
https://www.domain.co.uk/blog/2011/03/post-name/The category page will be structured as:
https://www.domain.co.uk/blog/category-name/Archives will be structured as:
https://www.domain.co.uk/blog/2011/03/Author will be structured as:
https://www.domain.co.uk/blog/author/author-name/Tags will be structured as:
https://www.domain.co.uk/blog/tags/tag-name/Hope this helps anyone who needs it.
Forum: Plugins
In reply to: Add class to post_classFixed it. The code that works is below:
// Add a class to post_class if feature image is detected function check_image( $class = '' ) { if ( has_post_thumbnail() ) { $class[] = 'feature-image'; } return $class; } add_filter('post_class', 'check_image'); // end ---
Forum: Plugins
In reply to: Contact Form 7 attach file email is encodedNot sure you can do this. The attachment field is not meant for you to attach stuff to but for the user filing out a form to send files to you.
Forum: Plugins
In reply to: Contact Form 7 attach file email is encodedI’ve been told is it possible to get the contact form plug-in to use SMTP to send email rather than PHP mail()? If so, tell it to relay through an IP address unauthenticated and it should be able to relay the messages including attachments correctly.
Is this possible with this plugin?