How to load a internal page content within div?

I have following code in a basic page on drupal 7 <h2 id=”tabs”>Test Title</h2> <!– Nav tabs –> <ul class=”nav nav-tabs”> <li class=”active”><a href=”content/test” data-toggle=”tab”><i class=”fa fa-home”></i>Test Nav</a></li> </ul> <!– Tab panes –> <div class=”tab-content”> <div class=”tab-pane active” id=”home”> <p>Content of the above internal link should display here.</p> </div> </div> So, when I click “Test…

magento 1.9, how sort products by stock

i have this code $product_model = Mage::getModel(‘catalog/product’)->getCollection() ->setPageSize(5) ->setOrder(‘entity_id’, ‘DESC’) ->addAttributeToFilter(‘attribute_set_id’, array(‘in’ => array(‘4′, ’12’))) ->addAttributeToFilter(‘price’, array(‘gteq’=>80)) ->joinField( ‘qty’, ‘cataloginventory/stock_item’, ‘qty’, ‘product_id=entity_id’, ‘.stock_id=1’, ‘left’ ); $product_model->getSelect()->joinLeft( array(‘_inventory_table’ => $product_model->getTable(‘cataloginventory/stock_item’)), “_inventory_table.product_id = e.entity_id”, array(‘is_in_stock’, 0) ); I want to get all the products that out_of_stock How can this be done in my request? and how can…

Trying to get property ‘ID’ and ‘post_author’ of non-object error

time. Last week I updated to version 7.0 of php and from there it is giving me the following errors: Notice: Trying to get property ‘ID’ of non-object in web_URL/wp-content/themes/stellenportal/tool-box.php on line 33 Notice: Trying to get property ‘post_author’ of non-object in web_URL/wp-content/themes/stellenportal/tool-box.php on line 34 Here’s my code: at the beginning of the PHP…

Strange behaviour of is_user_logged_in() and get_current_user_id()

I have an issue where is_user_logged_in() appears to alternate between being true and false. Additionally, get_current_user_id() gives the correct user ID if is_user_logged_in() is true. Here’s my code: .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^wp-content/uploads/(.*)$ file-access.php?file=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d…