chinatownlee
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Orvis] Homepage: Intro text block removalI had to fiddle with the percentages a bit under each media query, but that worked fine, thank you!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Exporting usersThanks, Greg.
Solved it, nevermind.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Cannot sort ads in advert archivesDo you agree then that is quite difficult to be able to use the sorting functionality out of the box if the categorization of each advert is based on specific category (archives) and not on pages.
Therefore, when the user clicks on the advert category that the single advert is assigned to (single.php) the user is directed to an archive not a page. So quite impossible to use sorting.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Thumbnail scrollingHi,
I sent you an email yesterday, I hope you received it.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Forcing Featured ImageIt worked, thanks!
Forum: Fixing WordPress
In reply to: Need more rights error – Editor roleSo you’re saying that the ‘Editor’ role doesn’t work out the box?
What I’ve meant is that every capability had been checked except the ‘Create posts’. So I thought this might have caused the corresponding error.
However, even though every capability is checked I still get the blank screen.
Forum: Plugins
In reply to: [BuddyPress Xprofile Custom Field Types] Calling undefined functionApparently, the function is deprecated as are the instructions in buddypress.org.
Works with:
bp_is_user_profile_edit()
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Including Listing info in advert wp-adminI’ll definitely be waiting for it, Greg.
As I need to penetrate the classifieds market with the offering of free adverts at first, the ability to track different Free plans is crucial. Should definitely be useful for others also.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Including Listing info in advert wp-adminIn the next release i will add an ability to insert a “payments” column on the Ads list which will redirect to wp-admin / Classifieds / Payments History panel filtered by the Advert ID.
@gwin, could you address the issue that this will not solve the initial issue of tracking ‘Free’ ads since Payments History tab is empty for free adverts.
The ability to quickly see under which different Free plan each advert is very important to any classifieds project.
- This reply was modified 6 years, 9 months ago by chinatownlee.
Forum: Developing with WordPress
In reply to: Checking hierarchical taxonomyWhenever I’m visiting child terms of 448 and 451 I see both messages ‘Jacksons’ and ‘Watsons’ and as I now understand this works as intended.
if (term_is_ancestor_of(448, $term, 'family') or is_term(448, 'family')) { echo '<p>Jacksons</p>'; } if (term_is_ancestor_of(451, $term, 'family') or is_term(451, 'family')) { echo '<p>Watsons</p>'; }
I a have a bunch of different parent terms with child terms and I hoped I could use this function for delivering conditional content in a way I wanted.
Any advice on how could I achieve the goal of displaying only the ‘Watsons’ message when visiting any of the child terms of Parent ID 451?
- This reply was modified 6 years, 9 months ago by chinatownlee.
- This reply was modified 6 years, 9 months ago by chinatownlee.
Forum: Developing with WordPress
In reply to: Checking hierarchical taxonomyThanks for the effort @catacaustic ??
What I am using the term_is_ancestor_of for is exact replication of the example provided in codex:
The code snip below checks to see if the term called ‘Music’ (ID 4) for the taxonmy ‘Sound’ is being processed, and if so, presents a wp_nav_menu for the Music archive page, and any subterms of Music (e.g. jazz, classical.)
It is this part that is my actual goal:
and any subterms of Music (e.g. jazz, classical.)
<?php if (term_is_ancestor_of(4, $term, 'sound') or is_term(4, 'sound')): ?> <div id="music_subnav_menu" class="subnav_menu"> <?php wp_nav_menu( array('menu' => 'Music' )); ?> </div> <? endif; ?>
which is just not working.
- This reply was modified 6 years, 9 months ago by chinatownlee.
- This reply was modified 6 years, 9 months ago by chinatownlee.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Feature request: BP integration addonGreat, I’ll definitely be waiting for it!
Forum: Developing with WordPress
In reply to: Checking hierarchical taxonomyThanks for the response, @catacaustic.
Could you please edit the code to not include the child term exactly like in the example in documentation?
Forum: Developing with WordPress
In reply to: Checking hierarchical taxonomyI feel the irony, but I could not get your actual answer.
I want to show the same message when visiting each and every archive of the children term of the parent term with the ID = 1, just as I wrote earlier.
Are you implying I should use something else?