{"id":456,"date":"2019-11-23T21:30:31","date_gmt":"2019-11-23T21:30:31","guid":{"rendered":"https:\/\/jmrowe.com\/blog\/?p=456"},"modified":"2020-07-22T13:50:35","modified_gmt":"2020-07-22T13:50:35","slug":"wordpress-oxygen-builder-notes","status":"publish","type":"post","link":"https:\/\/jmrowe.com\/blog\/wordpress-oxygen-builder-notes\/","title":{"rendered":"WordPress Oxygen Builder notes"},"content":{"rendered":"<p>Easy posts and the repeater modules automatically include pagination. If you want to prevent this you can add &#8220;no_found_rows=true&#8221; to the custom query.<\/p>\n<p>i.e.<\/p>\n<pre class=\"lang:default decode:true \">posts_per_page=5&amp;no_rows_found=true  \/\/ this will return only 5 posts with no pagination.<\/pre>\n<p>If you want to edit the css for the pagination links here are the selectors.<\/p>\n<pre class=\"lang:css decode:true \">.oxy-easy-posts-pages{\r\n\/** for the container of the pagination links **\/\r\n}\r\n\r\n.oxy-easy-posts-pages a{\r\n\/**  For the clickable pagination links **\/\r\n}\r\n.page-numbers.current{\r\n\/**  For the current # in the pagination **\/\r\n}\r\na.next.page-numbers {\r\n\/** for the next link (non number) **\/\r\n}\r\na.previous.page-numbers {\r\n\/** for the previous link (non number) **\/\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Custom Conditions Example<\/strong><\/p>\n<pre class=\"lang:default decode:true \">if( function_exists('oxygen_vsb_register_condition') ) {\r\n\r\nglobal $oxy_condition_operators;\r\n\r\n\/\/ Condition to check if a URL parameter is present.\r\noxygen_vsb_register_condition('Access Code', array('options'=&gt;array(), 'custom'=&gt;true), $oxy_condition_operators['string'], 'oxy_access_code_callback', 'Other');\r\n\r\nfunction oxy_access_code_callback($value, $operator) {\r\n\r\nif( $operator == '==') {\r\n\r\n\tif( !empty( $_GET['access'] ) &amp;&amp; $_GET['access'] == $value ) {\r\n\treturn true;\r\n\t} else {\r\n\treturn false;\r\n\t}\r\n\t\r\n} else if( $operator == '!=' ) {\r\n\t\r\n\tif( empty( $_GET['access'] ) || $_GET['access'] != $value ) {\r\n\t\treturn true;\r\n\t} else {\r\n\t\treturn false;\r\n\t}\r\n\t\r\n}\r\n\r\n}\r\n\t\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Easy posts and the repeater modules automatically include pagination. If you want to prevent this you can add &#8220;no_found_rows=true&#8221; to the custom query. i.e. posts_per_page=5&amp;no_rows_found=true \/\/ this will return only 5 posts with no pagination. If you want to edit the css for the pagination links here are the selectors. .oxy-easy-posts-pages{ \/** for the container [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":3,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/456\/revisions\/542"}],"wp:attachment":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/media?parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/categories?post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/tags?post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}