markelrayes
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Google Analytics CodeWe are using Google Site Tag. Do you know if I can use the solution above since they are the same framework or do you have a better suggestion?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Google Analytics CodeGiving a little bump :]
- This reply was modified 3 years, 9 months ago by markelrayes.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Google Analytics CodeYeah it’s not logging.
Here is the code I used
if ($marketfilter == 'story-market') { echo do_shortcode('[ajax_load_more single_post="true" single_post_id="' . get_the_ID() . '" single_post_order="query" single_post_query_order="latest" repeater="template_6" post_type="stories" meta_key="story_market' . ($filtertopics ? $filtertopicstax : NULL) . '" meta_value="' . $market . ($filtertopics ? $filtertopics : NULL) . '" meta_compare="=:LIKE" meta_relation="AND" meta_type="CHAR:CHAR" scroll_distance="-500" posts_per_page="1" taxonomy="' . ($filtermarkets ? $filtermarketstax : '') . ($filtermarkets & $filtersectors ? ':' : '') . ($filtersectors ? $filtersectorstax : NULL) . '" taxonomy_terms="' . ($filtermarkets ? $filtermarkets : NULL) . ($filtermarkets & $filtersectors ? ':' : '') . ($filtersectors ? $filtersectors : NULL) . '" taxonomy_operator="IN:IN" cache="true" cache_id="market-stories-' . $market . '" seo="true"]'); }'
and here is a sample page:
https://www.connectcre.com/stories/savills-acquires-workplace-solutions-advisor-t3/
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Google Analytics CodeShould I just paste that into function.php? I’m guessing it show show True inside the console log after I do…
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Google Analytics CodeJust bumping this.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesCool, thanks for the helpful tips. Our site is live at https://www.connectcre.com and we use ALM for the load more stories and the main story page. It’s been really helpful. Thanks for being responsive.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesCool. So I used this meta and taxonomy filters on multiple ALM shortcodes on the same page so when I change the variables they filter all of them.
One last question, if there are no values given for the taxonomy terms and meta keys, will it still search the WP Query and return nothing or does it ignore that empty query?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesHey,
This was the final code to filter multiple queries:
echo do_shortcode('[ajax_load_more single_post="true" single_post_id="' . get_the_ID() . '" single_post_order="query" single_post_query_order="latest" repeater="template_6" post_type="stories" meta_key="other_property_sectors:story_topics" meta_value="' . $propertysector . ':' . $filtertopics . '" meta_compare="LIKE:LIKE" meta_relation="AND" meta_type="CHAR:CHAR" scroll_distance="-500" posts_per_page="1" taxonomy="story-market:property-sector" taxonomy_terms="' . $filtermarkets . ':' . $filtersectors . '" taxonomy_operator="IN:IN" cache="true" cache_id="sector-stories" ]');
Is that going to put a giant strain on my server?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesDcooney,
Does that Public Filtering method you provided work if multiple check boxes are selected or is it just for one button at a time?
BTW the site is at new.connectcre.com
I have the filters just showing at the top right now to get an idea of what I mean.
- This reply was modified 3 years, 10 months ago by markelrayes.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Single Page Addon Not RewritingI turned off SEO and it stopped rewriting completely. So it seems the single post add on isn’t working.
I have the shortcode inside of single.php.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesI think that might be the solution thanks. I’ll look into it.
What I was thinking was using the custom meta query function built into the shortcode builder but having the value be a php variable that is updated on page load through Ajax.
So when the page loads the php variable for the meta query value is updated page-wide.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesIt would actually be meta_value=”. $filters .”
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesOne solution I am thinking is to create a variable like $filters and have it just a comma separated list of what is checked. So if they check option A and B the $filters would echo “A, B” and from there have it do a meta query filter on the actual ALM shortcode.
Like:
meta_key=”filter_choice” meta_value=”$filters” meta_compare=”IN”
That way I can put $variable into multiple ALMS. Would that work?
I have to figure out the ajax to define the variable when the user clicks the checkboxes.
- This reply was modified 4 years ago by markelrayes.
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Filter multiple ALM CategoriesPlease ignore the $hubfocus and $hubfocustype. They define what kind of post taxonomies to load and work perfectly.
Forum: Plugins
In reply to: [Reuse Builder] BUG – Metabox fields disappearCan we acknowledge this bug and realize how completely useless this plugin is?
Also, It makes me feel robbed that I paid for his other plugin.