• Resolved Nvsh

    (@nithushan)


    [ redundant link removed ]

    and

    /unexpected/avoid-washing-these-items-down-the-drain/?utm_source=taboola

    please check those two urs

    1.first url direct users. if anybody came thorough directly they ill show all the article one page
    2. 2nd url .if anybody came thorough taboola advertising, they ill see next page buttion,
    how can i implement this function on my WordPress site

    short question
    with UTM quarry= page break with buttons
    without utm quarry= no page break function no button all the article one page

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It depends on how your site handles page breaks. Typically <!--nextpage--> is inserted into content and WP handles pagination through calls to the_content(). So if you had code to strip out these tags early on through “the_content” filter, there would be no pagination. You could conditionally do so by first checking if the requested page is one where you want this behavior. Either something distinctive in the content, or through get_queried_object_id(). Then check if $_REQUEST['utm_source'] is empty or not, and if not, check if it equals “taboola”. If that all checks out, don’t strip out nextpage tags, just return the passed content unchanged.
    https://developer.ww.wp.xz.cn/reference/hooks/the_content/

    • This reply was modified 5 years ago by bcworkz.
Viewing 1 replies (of 1 total)

The topic ‘WordPress customization’ is closed to new replies.